File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ argExpected['alpha|a']="alphaArg=alpha - The first argument"
88argExpected[' bravo|b' ]=" bravoArg=bravo - The second argument"
99argExpected[' charlie|c' ]=" charlieArg=charlie - The third argument"
1010argExpected[' delta|d' ]=" deltaArg=delta - The forth argument"
11+ argExpected[' numeric|n' ]=" numericArg=25 - A numeric argument"
1112
1213# Parse any arguments
1314argParse
@@ -16,9 +17,11 @@ argParse
1617[ " $( argValue " bravoArg" ) " == " bravo" ] && fail || ok
1718[ " $( argValue " charlieArg" ) " == " charlie" ] && fail || ok
1819[ " $( argValue " deltaArg" ) " == " delta" ] && fail || ok
20+ [ " $( argValue " numericArg" ) " == 25 ] && fail || ok
1921
2022
2123argExists " alphaArg" && fail || ok
2224argExists " bravoArg" && fail || ok
2325argExists " charlieArg" && fail || ok
2426argExists " deltaArg" && fail || ok
27+ argExists " numericArg" && fail || ok
You can’t perform that action at this time.
0 commit comments