template<
arithmetic option_value_t>
class seqan3::arithmetic_range_validator< option_value_t >
A validator that checks whether a number is inside a given range.
- Template Parameters
-
On construction, the validator must receive a maximum and a minimum number. The class than acts as a functor, that throws a seqan3::validation_error exception whenever a given value does not lie inside the given min/max range.
int main(int argc, const char ** argv)
{
int myint;
myparser.add_option(myint,'i',"integer","Give me a number.",
try
{
myparser.parse();
}
{
return -1;
}
return 0;
}
Meta-header for the Argument Parser module .
Argument parser exception that is thrown whenever there is an error while parsing the command line ar...
Definition: exceptions.hpp:40
The SeqAn command line parser.
Definition: argument_parser.hpp:154
A validator that checks whether a number is inside a given range.
Definition: validators.hpp:125
Provides seqan3::debug_stream and related types.
@ standard
The default were no checking or special displaying is happening.
Definition: auxiliary.hpp:250
debug_stream_type debug_stream
A global instance of seqan3::debug_stream_type.
Definition: debug_stream.hpp:37