mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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:
parent
6f19a8c9f7
commit
fdbcc9847d
@ -321,5 +321,6 @@ case "${command}" in
|
|||||||
-V|--version)
|
-V|--version)
|
||||||
version; exit 0 ;;
|
version; exit 0 ;;
|
||||||
*)
|
*)
|
||||||
|
error "$(gettext "Unknown command:") $command"
|
||||||
usage; exit 1 ;;
|
usage; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user