new output for default version and value required

This commit is contained in:
mes5k 2005-01-24 03:02:34 +00:00
parent 4cba69f53b
commit db95c71374
38 changed files with 109 additions and 105 deletions

View File

@ -3,7 +3,7 @@ PARSE ERROR:
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -f (--floatTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: (--stringTest)
Brief USAGE: Brief USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test3 --help ../examples/test3 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: (--stringTest)
Brief USAGE: Brief USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test3 --help ../examples/test3 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR:
Brief USAGE: Brief USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test3 --help ../examples/test3 --help

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
Brief USAGE: Brief USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff
<string>|-g <string>} {-i <string> ... |-j <string> <string>|-g <string>} {-i <string> ... |-j <string>
... } [--ddd] -c <string> [--] [-v] [-h] ... } [--ddd] -c <string> [--] [--version] [-h]
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test5 --help ../examples/test5 --help

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -d
Brief USAGE: Brief USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff
<string>|-g <string>} {-i <string> ... |-j <string> <string>|-g <string>} {-i <string> ... |-j <string>
... } [--ddd] -c <string> [--] [-v] [-h] ... } [--ddd] -c <string> [--] [--version] [-h]
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test5 --help ../examples/test5 --help

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -b (--bbb)
Brief USAGE: Brief USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff
<string>|-g <string>} {-i <string> ... |-j <string> <string>|-g <string>} {-i <string> ... |-j <string>
... } [--ddd] -c <string> [--] [-v] [-h] ... } [--ddd] -c <string> [--] [--version] [-h]
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test5 --help ../examples/test5 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -f (--floatTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -f (--floatTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,7 +3,7 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test2 --help ../examples/test2 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test3 --help ../examples/test3 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -f (--floatTest)
Brief USAGE: Brief USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test3 --help ../examples/test3 --help

View File

@ -2,8 +2,8 @@ PARSE ERROR: Argument: -n (--name)
Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie
Brief USAGE: Brief USAGE:
../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [-v] [-h] <1|2 ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version]
|3> [-h] <1|2|3>
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test6 --help ../examples/test6 --help

View File

@ -2,8 +2,8 @@ PARSE ERROR: Argument: (--times)
Value '6' does not meet constraint: 1|2|3 Value '6' does not meet constraint: 1|2|3
Brief USAGE: Brief USAGE:
../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [-v] [-h] <1|2 ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version]
|3> [-h] <1|2|3>
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test6 --help ../examples/test6 --help

View File

@ -10,7 +10,7 @@ Brief USAGE:
<name string>] [-d] [-g <negative <name string>] [-d] [-g <negative
int>] [-f <negative int>] -n <homer int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] |marge|bart|lisa|maggie> ... [--]
[-v] [-h] <1|2|3> ... [--version] [-h] <1|2|3> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help

View File

@ -10,7 +10,7 @@ Brief USAGE:
<name string>] [-d] [-g <negative <name string>] [-d] [-g <negative
int>] [-f <negative int>] -n <homer int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] |marge|bart|lisa|maggie> ... [--]
[-v] [-h] <1|2|3> ... [--version] [-h] <1|2|3> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help

View File

@ -2,7 +2,7 @@ PARSE ERROR:
One or more required arguments missing! One or more required arguments missing!
Brief USAGE: Brief USAGE:
../examples/test1 [-r] -n <string> [--] [-v] [-h] ../examples/test1 [-r] -n <string> [--] [--version] [-h]
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test1 --help ../examples/test1 --help

View File

@ -1,7 +1,7 @@
USAGE: USAGE:
../examples/test1 [-r] -n <string> [--] [-v] [-h] ../examples/test1 [-r] -n <string> [--] [--version] [-h]
Where: Where:
@ -10,12 +10,12 @@ Where:
Print name backwards Print name backwards
-n <string>, --name <string> -n <string>, --name <string>
(required) (value required) Name to print (required) Name to print
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help

View File

@ -2,19 +2,19 @@
USAGE: USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
Where: Where:
-f <float>, --floatTest <float> -f <float>, --floatTest <float>
(value required) float test float test
-i <int>, --intTest <int> -i <int>, --intTest <int>
(required) (value required) integer test (required) integer test
-s <string>, --stringTest <string> -s <string>, --stringTest <string>
(required) (value required) string test (required) string test
-A, --existTestA -A, --existTestA
tests for the existence of A tests for the existence of A
@ -28,17 +28,17 @@ Where:
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<string> <string>
(required) (value required) unlabeld test (required) unlabeld test
<string> (accepted multiple times) <string> (accepted multiple times)
(value required) file names file names
this is a message this is a message

View File

@ -2,20 +2,20 @@
USAGE: USAGE:
../examples/test3 [-f=<float>] ... [-i=<int>] ... ../examples/test3 [-f=<float>] ... [-i=<int>] ...
--stringTest=<string> [-B] [--] [-v] [-h] <string> --stringTest=<string> [-B] [--] [--version] [-h]
<string> <fileNameString> ... <string> <string> <fileNameString> ...
Where: Where:
-f <float>, --floatTest <float> (accepted multiple times) -f <float>, --floatTest <float> (accepted multiple times)
(value required) multi float test multi float test
-i <int>, --intTest <int> (accepted multiple times) -i <int>, --intTest <int> (accepted multiple times)
(value required) multi int test multi int test
--stringTest <string> --stringTest <string>
(required) (value required) string test (required) string test
-B, --existTestB -B, --existTestB
exist Test B exist Test B
@ -23,20 +23,20 @@ Where:
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<string> <string>
(required) (value required) unlabeled test one (required) unlabeled test one
<string> <string>
(required) (value required) unlabeled test two (required) unlabeled test two
<fileNameString> (accepted multiple times) <fileNameString> (accepted multiple times)
(value required) file names file names
this is a message this is a message

View File

@ -1,7 +1,7 @@
my usage message: my usage message:
-A, --sA (exist Test A) -A, --sA (exist Test A)
-B, --sB (exist Test B) -B, --sB (exist Test B)
-s <string>, --Bs <string> ((required) (value required) string test) -s <string>, --Bs <string> ((required) string test)
--, --ignore_rest (Ignores the rest of the labeled arguments following this flag.) --, --ignore_rest (Ignores the rest of the labeled arguments following this flag.)
-v, --version (Displays version information and exits.) --version (Displays version information and exits.)
-h, --help (Displays usage information and exits.) -h, --help (Displays usage information and exits.)

View File

@ -3,45 +3,45 @@ USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff
<string>|-g <string>} {-i <string> ... |-j <string> <string>|-g <string>} {-i <string> ... |-j <string>
... } [--ddd] -c <string> [--] [-v] [-h] ... } [--ddd] -c <string> [--] [--version] [-h]
Where: Where:
-a <string>, --aaa <string> -a <string>, --aaa <string>
(OR required) (value required) or test a (OR required) or test a
-- OR -- -- OR --
-b <string>, --bbb <string> -b <string>, --bbb <string>
(OR required) (value required) or test b (OR required) or test b
--eee <string> --eee <string>
(OR required) (value required) e test (OR required) e test
-- OR -- -- OR --
--fff <string> --fff <string>
(OR required) (value required) f test (OR required) f test
-- OR -- -- OR --
-g <string>, --ggg <string> -g <string>, --ggg <string>
(OR required) (value required) g test (OR required) g test
-i <string>, --iii <string> (accepted multiple times) -i <string>, --iii <string> (accepted multiple times)
(OR required) (value required) or test i (OR required) or test i
-- OR -- -- OR --
-j <string>, --jjj <string> (accepted multiple times) -j <string>, --jjj <string> (accepted multiple times)
(OR required) (value required) or test j (OR required) or test j
--ddd --ddd
d test d test
-c <string>, --ccc <string> -c <string>, --ccc <string>
(required) (value required) c test (required) c test
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help

View File

@ -1,27 +1,27 @@
USAGE: USAGE:
../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [-v] [-h] <1|2 ../examples/test6 -n <homer|marge|bart|lisa|maggie> [--] [--version]
|3> [-h] <1|2|3>
Where: Where:
-n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa -n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa
|maggie> |maggie>
(required) (value required) Name to print (required) Name to print
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<1|2|3> <1|2|3>
(required) (value required) Number of times to print (required) Number of times to print
Command description message Command description message

View File

@ -9,54 +9,54 @@ USAGE:
<name string>] [-d] [-g <negative <name string>] [-d] [-g <negative
int>] [-f <negative int>] -n <homer int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] |marge|bart|lisa|maggie> ... [--]
[-v] [-h] <1|2|3> ... [--version] [-h] <1|2|3> ...
Where: Where:
-l <int>, --limit <int> -l <int>, --limit <int>
(value required) Max number of alignments allowed Max number of alignments allowed
-u <float lte 1>, --upperBound <float lte 1> -u <float lte 1>, --upperBound <float lte 1>
(value required) upper percentage bound upper percentage bound
-b <float lte 1>, --lowerBound <float lte 1> -b <float lte 1>, --lowerBound <float lte 1>
(value required) lower percentage bound lower percentage bound
-z <filename>, --filename2 <filename> -z <filename>, --filename2 <filename>
(value required) Sequence 2 filename (FASTA format) Sequence 2 filename (FASTA format)
-x <filename>, --filename1 <filename> -x <filename>, --filename1 <filename>
(value required) Sequence 1 filename (FASTA format) Sequence 1 filename (FASTA format)
-s <name string>, --scoringMatrix <name string> -s <name string>, --scoringMatrix <name string>
(value required) Scoring Matrix name Scoring Matrix name
-d, --isDna -d, --isDna
The input sequences are DNA The input sequences are DNA
-g <negative int>, --gapExtend <negative int> -g <negative int>, --gapExtend <negative int>
(value required) The cost for each extension of a gap The cost for each extension of a gap
-f <negative int>, --gapCreate <negative int> -f <negative int>, --gapCreate <negative int>
(value required) The cost of creating a gap The cost of creating a gap
-n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa -n <homer|marge|bart|lisa|maggie>, --name <homer|marge|bart|lisa
|maggie> (accepted multiple times) |maggie> (accepted multiple times)
(required) (value required) Name to print. This is a long, (required) Name to print. This is a long, nonsensical message to test
nonsensical message to test line wrapping. Hopefully it works. line wrapping. Hopefully it works.
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<1|2|3> (accepted multiple times) <1|2|3> (accepted multiple times)
(value required) Number of times to print Number of times to print
Command description message. This is a long multi-line message meant to Command description message. This is a long multi-line message meant to

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -s (--stringTest)
Brief USAGE: Brief USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test8 --help ../examples/test8 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -s (--stringTest)
Brief USAGE: Brief USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test8 --help ../examples/test8 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR:
Brief USAGE: Brief USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test8 --help ../examples/test8 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -i (--intTest)
Brief USAGE: Brief USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test8 --help ../examples/test8 --help

View File

@ -3,8 +3,8 @@ PARSE ERROR: Argument: -f (--floatTest)
Brief USAGE: Brief USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test8 --help ../examples/test8 --help

View File

@ -2,20 +2,20 @@
USAGE: USAGE:
../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B] ../examples/test8 [-f=<float>] ... [-i=<int>] ... -s=<string> [-B]
[--] [-v] [-h] <string> <string> <fileNameString> [--] [--version] [-h] <string> <string>
... <fileNameString> ...
Where: Where:
-f <float>, --floatTest <float> (accepted multiple times) -f <float>, --floatTest <float> (accepted multiple times)
(value required) multi float test multi float test
-i <int>, --intTest <int> (accepted multiple times) -i <int>, --intTest <int> (accepted multiple times)
(value required) multi int test multi int test
-s <string>, --stringTest <string> -s <string>, --stringTest <string>
(required) (value required) string test (required) string test
-B, --existTestB -B, --existTestB
exist Test B exist Test B
@ -23,20 +23,20 @@ Where:
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<string> <string>
(required) (value required) unlabeled test one (required) unlabeled test one
<string> <string>
(required) (value required) unlabeled test two (required) unlabeled test two
<fileNameString> (accepted multiple times) <fileNameString> (accepted multiple times)
(value required) file names file names
this is a message this is a message

View File

@ -4,7 +4,7 @@ PARSE ERROR:
Brief USAGE: Brief USAGE:
../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff ../examples/test5 {-a <string>|-b <string>} {--eee <string>|--fff
<string>|-g <string>} {-i <string> ... |-j <string> <string>|-g <string>} {-i <string> ... |-j <string>
... } [--ddd] -c <string> [--] [-v] [-h] ... } [--ddd] -c <string> [--] [--version] [-h]
For complete USAGE and HELP type: For complete USAGE and HELP type:
../examples/test5 --help ../examples/test5 --help

View File

@ -1,3 +1,4 @@
REVERSE REVERSE
Verbose level: 3 Verbose level: 3
Noise level: 7 Noise level: 7
Word: blah

View File

@ -4,7 +4,7 @@ PARSE ERROR: Argument: -r (--reverse)
USAGE: USAGE:
../examples/test9 [-N] ... [-V] ... [-r] [--] ../examples/test9 [-N] ... [-V] ... [-r] [--] <won't see this>
Where: Where:
@ -21,6 +21,9 @@ Where:
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
<won't see this>
a random word
Command description message Command description message

View File

@ -2,19 +2,19 @@
USAGE: USAGE:
../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--] ../examples/test2 [-f <float>] -i <int> -s <string> [-A] [-C] [-B] [--]
[-v] [-h] <string> <string> ... [--version] [-h] <string> <string> ...
Where: Where:
-f <float>, --floatTest <float> -f <float>, --floatTest <float>
(value required) float test float test
-i <int>, --intTest <int> -i <int>, --intTest <int>
(required) (value required) integer test (required) integer test
-s <string>, --stringTest <string> -s <string>, --stringTest <string>
(required) (value required) string test (required) string test
-A, --existTestA -A, --existTestA
tests for the existence of A tests for the existence of A
@ -28,17 +28,17 @@ Where:
--, --ignore_rest --, --ignore_rest
Ignores the rest of the labeled arguments following this flag. Ignores the rest of the labeled arguments following this flag.
-v, --version --version
Displays version information and exits. Displays version information and exits.
-h, --help -h, --help
Displays usage information and exits. Displays usage information and exits.
<string> <string>
(required) (value required) unlabeld test (required) unlabeld test
<string> (accepted multiple times) <string> (accepted multiple times)
(value required) file names file names
this is a message this is a message