Skip to content

Commit

Permalink
getops: make --a-long option work again
Browse files Browse the repository at this point in the history
Add back a character lost in earlier change.

Regression-from: d27f5fe
Signed-off-by: Sami Kerola <[email protected]>
  • Loading branch information
kerolasa authored and karelzak committed May 16, 2017
1 parent 51b4b39 commit 9ac755f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc-utils/getopt-parse.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Note that we use "$@" to let each command-line parameter expand to a
# separate word. The quotes around "$@" are essential!
# We need TEMP as the 'eval set --' would nuke the return value of getopt.
TEMP=$(getopt -o 'ab:c::' --long '-long,b-long:,c-long::' -n 'example.bash' -- "$@")
TEMP=$(getopt -o 'ab:c::' --long 'a-long,b-long:,c-long::' -n 'example.bash' -- "$@")

if [ $? -ne 0 ]; then
echo 'Terminating...' >&2
Expand Down

0 comments on commit 9ac755f

Please sign in to comment.