summaryrefslogtreecommitdiffstats
path: root/lib/getopt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getopt.sh')
-rw-r--r--lib/getopt.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/getopt.sh b/lib/getopt.sh
index 645e77f..32fb57d 100644
--- a/lib/getopt.sh
+++ b/lib/getopt.sh
@@ -39,6 +39,8 @@ get_options()
while getopts "${optstring}" opt; do
if [ "x${opt}" != 'x?' ]; then
eval "${prefix}${opt}=\"\${OPTARG:-true}\""
+ else
+ return 1
fi
unset OPTARG
done