Sharg 1.1.2-rc.1
The argument parser for bio-c++ tools.
|
The concept for option validators passed to add_option/positional_option. More...
#include <sharg/validators.hpp>
The concept for option validators passed to add_option/positional_option.
When adding (positional) options to the sharg::parser you may pass a function object that models sharg::validator which checks the option value provided by the user for some constraint.
Sharg provides several common-use-case validators, e.g. the sharg::arithmetic_range_validator.
You can learn more about Sharg validators in our tutorial Validation of (positional) option values.
To implement your own validator please refer to the detailed concept description below.