mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-10 12:49:08 -04:00
updates
This commit is contained in:
parent
9f691ec858
commit
13a999a662
@ -31,7 +31,8 @@ TESTS = test1.sh \
|
|||||||
test29.sh \
|
test29.sh \
|
||||||
test30.sh \
|
test30.sh \
|
||||||
test31.sh \
|
test31.sh \
|
||||||
test32.sh
|
test32.sh \
|
||||||
|
test33.sh
|
||||||
|
|
||||||
EXTRA_DIST = $(TESTS) \
|
EXTRA_DIST = $(TESTS) \
|
||||||
test1.out \
|
test1.out \
|
||||||
@ -65,5 +66,6 @@ EXTRA_DIST = $(TESTS) \
|
|||||||
test29.out \
|
test29.out \
|
||||||
test30.out \
|
test30.out \
|
||||||
test31.out \
|
test31.out \
|
||||||
test32.out
|
test32.out \
|
||||||
|
test33.out
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
for A OR B we got : asdf
|
for A OR B we got : asdf
|
||||||
for string C we got : fdas
|
for string C we got : fdas
|
||||||
for string D we got : homer
|
for string D we got : 1
|
||||||
for E or F or G we got: blah
|
for E or F or G we got: blah
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
for A OR B we got : asdf
|
for A OR B we got : asdf
|
||||||
for string C we got : fdas
|
for string C we got : fdas
|
||||||
for string D we got : homer
|
for string D we got : 1
|
||||||
for E or F or G we got: asdf
|
for E or F or G we got: asdf
|
||||||
|
@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
|
|||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
||||||
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
|
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} -c <string> [--] [-v] [-h] [--ddd]
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
@ -25,9 +25,6 @@ Where:
|
|||||||
(OR required) (value required) g test
|
(OR required) (value required) g test
|
||||||
|
|
||||||
|
|
||||||
-d <string>, --ddd <string>
|
|
||||||
(value required) d test
|
|
||||||
|
|
||||||
-c <string>, --ccc <string>
|
-c <string>, --ccc <string>
|
||||||
(required) (value required) c test
|
(required) (value required) c test
|
||||||
|
|
||||||
@ -40,6 +37,9 @@ Where:
|
|||||||
-h, --help
|
-h, --help
|
||||||
Displays usage information and exits.
|
Displays usage information and exits.
|
||||||
|
|
||||||
|
--ddd
|
||||||
|
d test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this is a message
|
this is a message
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
PARSE ERROR:
|
PARSE ERROR: Argument: -d
|
||||||
One or more required arguments missing!
|
Couldn't find match for argument
|
||||||
|
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
||||||
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
|
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} -c <string> [--] [-v] [-h] [--ddd]
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
@ -25,9 +25,6 @@ Where:
|
|||||||
(OR required) (value required) g test
|
(OR required) (value required) g test
|
||||||
|
|
||||||
|
|
||||||
-d <string>, --ddd <string>
|
|
||||||
(value required) d test
|
|
||||||
|
|
||||||
-c <string>, --ccc <string>
|
-c <string>, --ccc <string>
|
||||||
(required) (value required) c test
|
(required) (value required) c test
|
||||||
|
|
||||||
@ -40,6 +37,9 @@ Where:
|
|||||||
-h, --help
|
-h, --help
|
||||||
Displays usage information and exits.
|
Displays usage information and exits.
|
||||||
|
|
||||||
|
--ddd
|
||||||
|
d test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this is a message
|
this is a message
|
||||||
|
@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
|
|||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
|
||||||
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} [-d <string>] -c <string> [--] [-v] [-h]
|
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff <string>|-g <string>} -c <string> [--] [-v] [-h] [--ddd]
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
|
|
||||||
@ -25,9 +25,6 @@ Where:
|
|||||||
(OR required) (value required) g test
|
(OR required) (value required) g test
|
||||||
|
|
||||||
|
|
||||||
-d <string>, --ddd <string>
|
|
||||||
(value required) d test
|
|
||||||
|
|
||||||
-c <string>, --ccc <string>
|
-c <string>, --ccc <string>
|
||||||
(required) (value required) c test
|
(required) (value required) c test
|
||||||
|
|
||||||
@ -40,6 +37,9 @@ Where:
|
|||||||
-h, --help
|
-h, --help
|
||||||
Displays usage information and exits.
|
Displays usage information and exits.
|
||||||
|
|
||||||
|
--ddd
|
||||||
|
d test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this is a message
|
this is a message
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
for A OR B we got : asdf
|
for A OR B we got : asdf
|
||||||
for string C we got : fdas
|
for string C we got : fdas
|
||||||
for string D we got : homer
|
for string D we got : 1
|
||||||
for E or F or G we got: blah
|
for E or F or G we got: blah
|
||||||
|
4
tests/test33.out
Normal file
4
tests/test33.out
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
for A OR B we got : asdf
|
||||||
|
for string C we got : fdas
|
||||||
|
for string D we got : 0
|
||||||
|
for E or F or G we got: blah
|
11
tests/test33.sh
Executable file
11
tests/test33.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# success
|
||||||
|
../examples/test5 -a asdf -c fdas --eee blah --ddd > tmp.out 2>&1
|
||||||
|
|
||||||
|
if cmp -s tmp.out test33.out; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user