diff options
Diffstat (limited to 'lib/getopt.sh')
-rw-r--r-- | lib/getopt.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getopt.sh b/lib/getopt.sh index 537892b..b609a1f 100644 --- a/lib/getopt.sh +++ b/lib/getopt.sh @@ -36,7 +36,9 @@ get_options() unset OPTARG while getopts "${optstring}" opt; do - eval "${prefix}${opt}=\"\${OPTARG:-true}\"" + if [ "x${opt}" != 'x?' ]; then + eval "${prefix}${opt}=\"\${OPTARG:-true}\"" + fi unset OPTARG done |