Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion optparse.bash
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ while [ \$# -ne 0 ]; do
usage
exit 0;;
*)
if [[ "\$param" == --* ]]; then
if [[ "\$param" == -- ]]; then
# getopts will handle the "--" correct and stops parsing
params="\$params -- \$@"
break
elif [[ "\$param" == --* ]]; then
echo -e "Unrecognized long option: \$param"
usage
exit 1
Expand Down