mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-27 14:32:14 +00:00
Fix help when no command provided.
This commit is contained in:
parent
c513f4246c
commit
3b51b90ffd
1 changed files with 5 additions and 1 deletions
|
@ -217,7 +217,11 @@ END
|
|||
}
|
||||
|
||||
chocpkg::commands::command() {
|
||||
local command="${1:-NONE}"; shift
|
||||
local command=NONE
|
||||
if [ $# -gt 0 ]; then
|
||||
command="$1"
|
||||
shift
|
||||
fi
|
||||
case "$command" in
|
||||
packages)
|
||||
chocpkg::commands::packages
|
||||
|
|
Loading…
Reference in a new issue