Skip to content

Commit c313775

Browse files
committed
Added global variable that will cause a failure if an argument isn't defined
1 parent 6e33d15 commit c313775

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

argument-parser.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ regexArgLongWithValue='^--([a-zA-Z0-9\-]{2,})=(.*)$'
99
argChunks=()
1010

1111
ARG_DEBUG=true
12+
ARG_MUST_BE_DEFINED=true
1213

1314
# Expand chained short form arguments, eg -aih => -a -i -h
1415
for argChunk in "$@"; do

0 commit comments

Comments
 (0)