Skip to content

Commit

Permalink
allow values with equal signs in double-dash 'long' flags
Browse files Browse the repository at this point in the history
  • Loading branch information
briceburg committed Apr 19, 2017
1 parent 7c157d9 commit e70c768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ args/normalize(){
__argv+=( "$arg" )
elif [ "--" = ${arg:0:2} ]; then
# double-dash "long" flags..., handle --flag=value case.
__argv+=( "${arg%=*}" )
__argv+=( "${arg%%=*}" )
[[ "$arg" == *"="* ]] && __argv+=( "${arg#*=}" )
else
# single-dash "short" flags..., handle -ooutput.txt case
Expand Down

0 comments on commit e70c768

Please sign in to comment.