[pacman-dev] [PATCH 2/7] pacman-key: display the unsupported command to the user
ivan.kanak at gmail.com
ivan.kanak at gmail.com
Thu Apr 21 09:59:06 EDT 2011
From: Ivan Kanakarakis <ivan.kanak at gmail.com>
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 at gmail.com>
---
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 82268c9..73f4a77 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
--
1.7.4.4
More information about the pacman-dev
mailing list