fixed to handle new exception on matching names/flags/desc

This commit is contained in:
mes5k 2004-09-07 22:12:27 +00:00
parent 9ee1f41a44
commit b7a7649bbf
6 changed files with 12 additions and 12 deletions

View File

@ -36,7 +36,7 @@ void parseOptions(int argc, char** argv)
// //
SwitchArg btest("B","sB", "exist Test B", false); SwitchArg btest("B","sB", "exist Test B", false);
SwitchArg atest("A","sA", "exist Test B", false); SwitchArg atest("A","sA", "exist Test A", false);
ValueArg<string> stest("s", "Bs", "string test", true, "homer", ValueArg<string> stest("s", "Bs", "string test", true, "homer",
"string"); "string");

View File

@ -48,11 +48,11 @@ int main(int argc, char** argv)
"Scoring Matrix name", false,"BLOSUM50","name string"); "Scoring Matrix name", false,"BLOSUM50","name string");
cmd.add( scoringMatrixName ); cmd.add( scoringMatrixName );
ValueArg<string> seq1Filename ("f","filename1", ValueArg<string> seq1Filename ("x","filename1",
"Sequence 1 filename (FASTA format)", false,"","filename"); "Sequence 1 filename (FASTA format)", false,"","filename");
cmd.add( seq1Filename ); cmd.add( seq1Filename );
ValueArg<string> seq2Filename ("F","filename2", ValueArg<string> seq2Filename ("z","filename2",
"Sequence 2 filename (FASTA format)", false,"","filename"); "Sequence 2 filename (FASTA format)", false,"","filename");
cmd.add( seq2Filename ); cmd.add( seq2Filename );

View File

@ -2,8 +2,8 @@ PARSE ERROR: Argument: -n (--name)
Couldn't find 'mike' in allowed list. Couldn't find 'mike' in allowed list.
Brief USAGE: Brief USAGE:
../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-F ../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-z
<filename>] [-f <filename>] [-s <name string>] [-d] <filename>] [-x <filename>] [-s <name string>] [-d]
[-g <negative int>] [-f <negative int>] -n <homer [-g <negative int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3> |marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3>
... ...

View File

@ -2,8 +2,8 @@ PARSE ERROR: Argument: (--times)
Couldn't find '6' in allowed list. Couldn't find '6' in allowed list.
Brief USAGE: Brief USAGE:
../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-F ../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-z
<filename>] [-f <filename>] [-s <name string>] [-d] <filename>] [-x <filename>] [-s <name string>] [-d]
[-g <negative int>] [-f <negative int>] -n <homer [-g <negative int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3> |marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3>
... ...

View File

@ -7,7 +7,7 @@ USAGE:
Where: Where:
-A, --sA -A, --sA
exist Test B exist Test A
-B, --sB -B, --sB
exist Test B exist Test B

View File

@ -1,8 +1,8 @@
USAGE: USAGE:
../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-F ../examples/test7 [-l <int>] [-u <float lte 1>] [-b <float lte 1>] [-z
<filename>] [-f <filename>] [-s <name string>] [-d] <filename>] [-x <filename>] [-s <name string>] [-d]
[-g <negative int>] [-f <negative int>] -n <homer [-g <negative int>] [-f <negative int>] -n <homer
|marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3> |marge|bart|lisa|maggie> ... [--] [-v] [-h] <1|2|3>
... ...
@ -19,10 +19,10 @@ Where:
-b <float lte 1>, --lowerBound <float lte 1> -b <float lte 1>, --lowerBound <float lte 1>
(value required) lower percentage bound (value required) lower percentage bound
-F <filename>, --filename2 <filename> -z <filename>, --filename2 <filename>
(value required) Sequence 2 filename (FASTA format) (value required) Sequence 2 filename (FASTA format)
-f <filename>, --filename1 <filename> -x <filename>, --filename1 <filename>
(value required) Sequence 1 filename (FASTA format) (value required) Sequence 1 filename (FASTA format)
-s <name string>, --scoringMatrix <name string> -s <name string>, --scoringMatrix <name string>