From: Ivan Kanakarakis <[email protected]>

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

Signed-off-by: Ivan Kanakarakis <[email protected]>
---
 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


Reply via email to