Fix help when no command provided.

This commit is contained in:
Simon Howard 2017-01-08 00:45:54 +01:00
parent c513f4246c
commit 3b51b90ffd

View file

@ -217,7 +217,11 @@ END
} }
chocpkg::commands::command() { chocpkg::commands::command() {
local command="${1:-NONE}"; shift local command=NONE
if [ $# -gt 0 ]; then
command="$1"
shift
fi
case "$command" in case "$command" in
packages) packages)
chocpkg::commands::packages chocpkg::commands::packages