summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-09-12 09:26:32 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-09-12 10:39:59 +0200
commit60c9fe2557f30d81bfd5b6bcf866bc6a80e6273a (patch)
tree0f066cb9298578bc35f43f2941d8a4d24bb9a373 /bin
parent9d78c2daf49ac7f67dc5c891699f0c8a18124c77 (diff)
downloadpacman-offline-60c9fe2557f30d81bfd5b6bcf866bc6a80e6273a.tar.gz
pacman-offline-60c9fe2557f30d81bfd5b6bcf866bc6a80e6273a.tar.zst
exit with failure on illegal option
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index ae2ec19..58b81f2 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -32,6 +32,11 @@ while getopts 'cfhprty' opt; do
help
exit 0
;;
+ c|f|p|r|t|y)
+ ;;
+ *)
+ exit 1
+ ;;
esac
done