This commit is contained in:
mes5k 2003-12-22 02:09:32 +00:00
parent e86d8fc3ad
commit 2d540bd1ef
8 changed files with 60 additions and 35 deletions

View File

@ -1,4 +1,4 @@
PARSE ERROR: for argument: undefined
PARSE ERROR:
One or more required arguments missing!

View File

@ -1,4 +1,4 @@
PARSE ERROR: for argument: -i (--intTest)
PARSE ERROR: Argument: -i (--intTest)
Argument already set!

View File

@ -1,4 +1,4 @@
PARSE ERROR: for argument: -f (--floatTest)
PARSE ERROR: Argument: -f (--floatTest)
Couldn't read argument value!

View File

@ -1,11 +1,7 @@
[-i] 0 9
[-i] 1 8
[ ] 0 marge
[ ] 1 bart
for float we got : 0
for int we got : 0
[ ] 0 bart
for string we got : bill
for ulabeled we got : homer
for bool A we got : 0
for ulabeled one we got : homer
for ulabeled two we got : marge
for bool B we got : 1
for bool C we got : 0

View File

@ -1,11 +1,7 @@
[ ] 0 marge
[ ] 1 bart
[ ] 2 one
[ ] 3 two
for float we got : 0
for int we got : 0
[ ] 0 bart
[ ] 1 one
[ ] 2 two
for string we got : aaa
for ulabeled we got : homer
for bool A we got : 0
for ulabeled one we got : homer
for ulabeled two we got : marge
for bool B we got : 0
for bool C we got : 0

View File

@ -1,11 +1,41 @@
[ ] 0 marge
[ ] 1 bart
[ ] 2 -hv
[ ] 3 two
for float we got : 0
for int we got : 0
for string we got : bbb
for ulabeled we got : homer
for bool A we got : 0
for bool B we got : 0
for bool C we got : 0
PARSE ERROR: Argument: -s (--stringTest)
Couldn't find delimiter for this argument!
USAGE:
../examples/test3 [-i=<int>] ... -s=<string> [-B] [--] [-v] [-h] <string> <string> <fileNameString> ...
Where:
-i <int>, --intTest <int> (accepted multiple times)
(value required) multi int test
-s <string>, --stringTest <string>
(required) (value required) string test
-B, --existTest B
exist Test B
--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.
-v, --version
Displays version information and exits.
-h, --help
Displays usage information and exits.
<string>
(required) (value required) unlabeled test one
<string>
(required) (value required) unlabeled test two
<fileNameString> (accepted multiple times)
(value required) file names
this is a message

View File

@ -1,10 +1,10 @@
PARSE ERROR: for argument: -B (--existTest B)
Argument already set!
PARSE ERROR: Argument: -s (--stringTest)
Couldn't find delimiter for this argument!
USAGE:
../examples/test3 [-i <int>] ... -s <string> [-B] [--] [-v] [-h] <string> <fileNameString> ...
../examples/test3 [-i=<int>] ... -s=<string> [-B] [--] [-v] [-h] <string> <string> <fileNameString> ...
Where:
@ -27,7 +27,10 @@ Where:
Displays usage information and exits.
<string>
(required) (value required) unlabeld test
(required) (value required) unlabeled test one
<string>
(required) (value required) unlabeled test two
<fileNameString> (accepted multiple times)
(value required) file names

View File

@ -1,4 +1,4 @@
PARSE ERROR: for argument: undefined
PARSE ERROR:
One or more required arguments missing!