Skip to content

Commit 6b7bc6e

Browse files
committed
Updated the default value regex to accept blank defaults
1 parent de38151 commit 6b7bc6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argument-parser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ regexArgShortChained='^-([a-zA-Z0-9]{2,})$'
66
regexArgLong='^--([a-zA-Z0-9\-]{2,})$'
77
regexArgLongWithValue='^--([a-zA-Z0-9\-]{2,})=(.*)$'
88

9-
regexArgDefault='^([^=]+)=(.+) -'
9+
regexArgDefault='^([^=]+)=(.*) -'
1010

1111
# Initialise some variables
1212
declare -A argv;

0 commit comments

Comments
 (0)