summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-12 11:58:07 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-12 11:58:07 +0200
commit6dacc04e8133d4d552eea8bb6a4c2070067d044d (patch)
treea41e0f045c004b238bab3dac1c41da9e0d20fa80
parent00be253c557270a5d13e6efcab4b5532888da93f (diff)
downloadalpine-conf-6dacc04e8133d4d552eea8bb6a4c2070067d044d.zip
setup-keymap: print usage on invalid option to stderr
-rw-r--r--setup-keymap.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-keymap.in b/setup-keymap.in
index 54982e8..256d2cb 100644
--- a/setup-keymap.in
+++ b/setup-keymap.in
@@ -103,6 +103,7 @@ goodbye() {
while getopts "h" opt; do
case $opt in
h) usage 0;;
+ '?') usage "1" >&2;;
esac
done
shift $(( $OPTIND - 1 ))