Skip to content

Commit 281e5de

Browse files
committed
add long option name case in test case
1 parent cdded7f commit 281e5de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-cases/parseOpts-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test_beforeVars=`declare`
7575

7676
blueEcho "Test case: success parse"
7777

78-
parseOpts "a,a-long|b,b-long:|c,c-long+|d,d-long+" aa -a -b bb -c c.sh -p pv -q qv cc \; bb -d d.sh -x xv d1 d2 d3 \; cc -- dd ee
78+
parseOpts "a,a-long|b,b-long:|c,c-long+|d,d-long+" aa -a -b bb -c c.sh -p pv -q qv cc \; bb --d-long d.sh -x xv d1 d2 d3 \; cc -- dd ee
7979
test_exitCode=$?
8080
_opts_showOptDescInfoList
8181
_opts_showOptValueInfoList
@@ -99,7 +99,7 @@ compareAllVars || fail "Unpected extra glable vars!"
9999

100100
blueEcho "Test case: illegal option x"
101101

102-
parseOpts "a,a-long|b,b-long:|c,c-long+|d,d-long+" aa -a -b bb -x -c c.sh -p pv -q qv cc \; bb -d d.sh -x xv d1 d2 d3 \; cc -- dd ee
102+
parseOpts "a,a-long|b,b-long:|c,c-long+|d,d-long+" aa -a -b bb -x -c c.sh -p pv -q qv cc \; bb --d-long d.sh -x xv d1 d2 d3 \; cc -- dd ee
103103
test_exitCode=$?
104104
_opts_showOptDescInfoList
105105
_opts_showOptValueInfoList

0 commit comments

Comments
 (0)