File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Include the Argument Parser library
4- source ../argument-parser.sh
5-
63# Define the expected arguments
4+ declare -A argExpected
75argExpected[' alpha|a' ]=" alphaArg=alpha - The first argument"
86argExpected[' bravo|b' ]=" bravoArg=string with spaces - The second argument"
97argExpected[' charlie|c' ]=" charlieArg=hyphenated-string - The third argument"
108argExpected[' delta|d' ]=" deltaArg= - The forth argument"
119argExpected[' numeric|n' ]=" numericArg=25 - A numeric argument"
1210
13- # Parse any arguments
14- argParse
11+ # Include the Argument Parser library
12+ source ../argument-parser.sh
1513
1614[ " $( argValue " alphaArg" ) " == " alpha" ] && fail || pass
1715[ " $( argValue " bravoArg" ) " == " string with spaces" ] && fail || pass
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Include the Argument Parser library
4- source ../argument-parser.sh
5-
63# Define the expected arguments
4+ declare -A argExpected
75argExpected[' alpha|a' ]=" alphaArg - The first argument"
86argExpected[' bravo|b' ]=" bravoArg - The second argument"
97argExpected[' charlie|c' ]=" charlieArg - The third argument"
108argExpected[' delta|d' ]=" deltaArg - The forth argument"
119argExpected[' numeric|n' ]=" numericArg - A numeric argument"
1210argExpected[' quoted|q' ]=" quotedArg - A quoted string argument"
1311
14- # Parse any arguments
15- argParse
12+ # Include the Argument Parser library
13+ source ../argument-parser.sh
1614
1715[ " $( argValue " alphaArg" ) " == " alpha" ] && fail || pass
1816[ " $( argValue " bravoArg" ) " == " bravo" ] && fail || pass
You can’t perform that action at this time.
0 commit comments