From fdbcc9847d7e13b96328adb5f34932eea7ca6ba9 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 21 Apr 2011 16:59:06 +0300 Subject: 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 Signed-off-by: Dan McGee --- scripts/pacman-key.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2