pacman-key: display the unsupported command to the user

If the user provides an unsupported command, inform the user that this
switch is unknown, display usage and exit.

Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Ivan Kanakarakis 2011-04-21 16:59:06 +03:00 committed by Dan McGee
parent 6f19a8c9f7
commit fdbcc9847d
1 changed files with 1 additions and 0 deletions

View File

@ -321,5 +321,6 @@ case "${command}" in
-V|--version)
version; exit 0 ;;
*)
error "$(gettext "Unknown command:") $command"
usage; exit 1 ;;
esac