This commit is contained in:
mes5k 2004-02-10 04:16:56 +00:00
parent 97658ba302
commit 7295d9d49b
14 changed files with 44 additions and 11 deletions

View File

@ -1,3 +1,4 @@
for A OR B we got : asdf
for string C we got : fdas
for string D we got : homer
for E or F or G we got: blah

View File

@ -1,7 +1,7 @@
#!/bin/sh
# success
../examples/test5 -a asdf -c fdas > tmp.out 2>&1
../examples/test5 -a asdf -c fdas --eee blah > tmp.out 2>&1
if cmp -s tmp.out test20.out; then
exit 0

View File

@ -1,3 +1,4 @@
for A OR B we got : asdf
for string C we got : fdas
for string D we got : homer
for E or F or G we got: asdf

View File

@ -1,7 +1,7 @@
#!/bin/sh
# success
../examples/test5 -b asdf -c fdas > tmp.out 2>&1
../examples/test5 -b asdf -c fdas -g asdf > tmp.out 2>&1
if cmp -s tmp.out test21.out; then
exit 0

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
USAGE:
../examples/test5 {-a <string>|-b <string>} [-d <string>] -c <string> [--] [-v] [-h]
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
Where:
@ -15,6 +15,16 @@ Where:
(OR required) (value required) or test b
--eee <string>
(OR required) (value required) e test
-- OR --
--fff <string>
(OR required) (value required) f test
-- OR --
-g <string>, --ggg <string>
(OR required) (value required) g test
-d <string>, --ddd <string>
(value required) d test

View File

@ -4,7 +4,7 @@ PARSE ERROR:
USAGE:
../examples/test5 {-a <string>|-b <string>} [-d <string>] -c <string> [--] [-v] [-h]
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
Where:
@ -15,6 +15,16 @@ Where:
(OR required) (value required) or test b
--eee <string>
(OR required) (value required) e test
-- OR --
--fff <string>
(OR required) (value required) f test
-- OR --
-g <string>, --ggg <string>
(OR required) (value required) g test
-d <string>, --ddd <string>
(value required) d test

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
USAGE:
../examples/test5 {-a <string>|-b <string>} [-d <string>] -c <string> [--] [-v] [-h]
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
Where:
@ -15,6 +15,16 @@ Where:
(OR required) (value required) or test b
--eee <string>
(OR required) (value required) e test
-- OR --
--fff <string>
(OR required) (value required) f test
-- OR --
-g <string>, --ggg <string>
(OR required) (value required) g test
-d <string>, --ddd <string>
(value required) d test

View File

@ -1,3 +1,4 @@
for A OR B we got : asdf
for string C we got : fdas
for string D we got : homer
for E or F or G we got: blah

View File

@ -1,7 +1,7 @@
#!/bin/sh
# success
../examples/test5 --aaa asdf -c fdas > tmp.out 2>&1
../examples/test5 --aaa asdf -c fdas --fff blah > tmp.out 2>&1
if cmp -s tmp.out test25.out; then
exit 0