mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 03:40:21 -04:00
tweaked tests to support dashes in arg names
This commit is contained in:
parent
e8a8b330e3
commit
cad795c4b8
@ -40,14 +40,14 @@ int main(int argc, char **argv)
|
||||
false, -10, "negative int");
|
||||
cmd.add( gapCreate );
|
||||
|
||||
ValueArg<int> gapExtend("g","gapExtend",
|
||||
ValueArg<int> gapExtend("g","gap-Extend",
|
||||
"The cost for each extension of a gap", false, -2, "negative int");
|
||||
cmd.add( gapExtend );
|
||||
|
||||
SwitchArg dna("d","isDna","The input sequences are DNA", false);
|
||||
cmd.add( dna );
|
||||
|
||||
ValueArg<string> scoringMatrixName("s","scoringMatrix",
|
||||
ValueArg<string> scoringMatrixName("s","scoring--Matrix",
|
||||
"Scoring Matrix name", false,"BLOSUM50","name string");
|
||||
cmd.add( scoringMatrixName );
|
||||
|
||||
|
@ -453,7 +453,7 @@ inline Arg::Arg(const std::string& flag,
|
||||
if ( ( _name.substr( 0, Arg::flagStartString().length() ) == Arg::flagStartString() ) ||
|
||||
( _name.substr( 0, Arg::nameStartString().length() ) == Arg::nameStartString() ) ||
|
||||
( _name.find( " ", 0 ) != std::string::npos ) )
|
||||
throw(SpecificationException("Argument name cannot contain either '" +
|
||||
throw(SpecificationException("Argument name begin with either '" +
|
||||
Arg::flagStartString() + "' or '" +
|
||||
Arg::nameStartString() + "' or space.",
|
||||
toString() ) );
|
||||
|
@ -29,13 +29,13 @@ Where:
|
||||
-x <filename>, --filename1 <filename>
|
||||
Sequence 1 filename (FASTA format)
|
||||
|
||||
-s <name string>, --scoringMatrix <name string>
|
||||
-s <name string>, --scoring--Matrix <name string>
|
||||
Scoring Matrix name
|
||||
|
||||
-d, --isDna
|
||||
The input sequences are DNA
|
||||
|
||||
-g <negative int>, --gapExtend <negative int>
|
||||
-g <negative int>, --gap-Extend <negative int>
|
||||
The cost for each extension of a gap
|
||||
|
||||
-f <negative int>, --gapCreate <negative int>
|
||||
|
Loading…
x
Reference in New Issue
Block a user