diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-04-21 16:59:06 +0300 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-21 12:09:23 -0500 |
commit | fdbcc9847d7e13b96328adb5f34932eea7ca6ba9 (patch) | |
tree | b98938d6aea20b46ad44ea336bc717980a5c4c31 | |
parent | 6f19a8c9f73e6177fc17e340cd0272714c6c3a5d (diff) | |
download | pacman-fdbcc9847d7e13b96328adb5f34932eea7ca6ba9.tar.xz |
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>
-rw-r--r-- | scripts/pacman-key.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 82268c93..73f4a776 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -321,5 +321,6 @@ case "${command}" in -V|--version) version; exit 0 ;; *) + error "$(gettext "Unknown command:") $command" usage; exit 1 ;; esac |