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! 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! 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! Couldn't read argument value!

View File

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

View File

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

View File

@ -1,11 +1,41 @@
[ ] 0 marge PARSE ERROR: Argument: -s (--stringTest)
[ ] 1 bart Couldn't find delimiter for this argument!
[ ] 2 -hv
[ ] 3 two
for float we got : 0 USAGE:
for int we got : 0
for string we got : bbb ../examples/test3 [-i=<int>] ... -s=<string> [-B] [--] [-v] [-h] <string> <string> <fileNameString> ...
for ulabeled we got : homer
for bool A we got : 0 Where:
for bool B we got : 0
for bool C we got : 0 -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) PARSE ERROR: Argument: -s (--stringTest)
Argument already set! Couldn't find delimiter for this argument!
USAGE: 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: Where:
@ -27,7 +27,10 @@ Where:
Displays usage information and exits. Displays usage information and exits.
<string> <string>
(required) (value required) unlabeld test (required) (value required) unlabeled test one
<string>
(required) (value required) unlabeled test two
<fileNameString> (accepted multiple times) <fileNameString> (accepted multiple times)
(value required) file names (value required) file names

View File

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