Function
setValidValues
Sets the set of allowed values of a ArgParseArgument object.
setValidValues(argument,values)
setValidValues(parser,optionName,values)
setValidValues(parser,argumentPosition,values)
Include Headers
seqan/arg_parse.h
Parameters
argument
The ArgParseArgument object.
values
A std::vector<std::string> containing all valid entries for the option or a std::string with valid values separated by spaces.
A std::string containing all valid entries for the option. Alternatively you can pass a string containing all values separated by spaces.
parser
The ArgumentParser object.
optionName
The identifier of the command line option.
argumentPosition
The index of the argument in the argument list.
Remarks
If the argument or option is an in- or output file. The valid strings will be interpreted as file endings and the command line parser checks if the provided file has the required file ending.
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2012/10/02 11:10:34