44template <
typename val
idator_t = detail::default_val
idator>
The concept for option validators passed to add_option/positional_option.
Definition: validators.hpp:50
Option struct that is passed to the sharg::parser::add_option() function.
Definition: config.hpp:46
std::string description
The description to be shown on any (exported) help page.
Definition: config.hpp:71
std::string long_id
The long identifier for the option (e.g. "age", making the option callable via --age).
Definition: config.hpp:65
bool hidden
Whether the option should be hidden.
Definition: config.hpp:120
bool advanced
Whether the option should only be displayed on the advanced help page.
Definition: config.hpp:108
bool required
Whether the option is required.
Definition: config.hpp:132
char short_id
The short identifier for the option (e.g. 'a', making the option callable via -a).
Definition: config.hpp:56
std::string default_message
The default message to be shown on any (exported) help page.
Definition: config.hpp:90
Provides some standard validators for (positional) options.