mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 13:07:38 +03:00
Show error when invalid command specified
This commit is contained in:
parent
5652018cde
commit
05aefc6489
1 changed files with 3 additions and 2 deletions
|
@ -53,8 +53,7 @@ printUsage() {
|
||||||
elif [ "merge" == "$1" ] || [ "build" == "$1" ] || [ "sign" == "$1" ]; then
|
elif [ "merge" == "$1" ] || [ "build" == "$1" ] || [ "sign" == "$1" ]; then
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
else
|
else
|
||||||
logError "Unknown command: '$1'"
|
logError "Unknown command: '$1'\n"
|
||||||
echo
|
|
||||||
cmd="COMMAND"
|
cmd="COMMAND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -627,4 +626,6 @@ elif [ "help" == "$MODE" ]; then
|
||||||
exit
|
exit
|
||||||
elif [ "merge" == "$MODE" ] || [ "build" == "$MODE" ] || [ "sign" == "$MODE" ]; then
|
elif [ "merge" == "$MODE" ] || [ "build" == "$MODE" ] || [ "sign" == "$MODE" ]; then
|
||||||
$MODE "$@"
|
$MODE "$@"
|
||||||
|
else
|
||||||
|
printUsage "$MODE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue