|
| template<typename self_t> |
| auto | group (this self_t &self, const std::string &name) -> self_t * |
| | Sets the help group this option is listed under.
|
| template<typename self_t> |
| auto | required (this self_t &self, bool value=true) -> self_t * |
| | Marks the option as required.
|
| template<typename self_t> |
| auto | mandatory (this self_t &self, bool value=true) -> self_t * |
| | Marks the option as required.
|
| template<typename self_t> |
| auto | always_capture_default (this self_t &self, bool value=true) -> self_t * |
| | Captures the bound variable's value as the printed default.
|
| auto | get_group () const -> const std::string & |
| | Returns the help group this option is listed under.
|
| auto | get_required () const -> bool |
| | Reports whether the option must appear.
|
| auto | get_ignore_case () const -> bool |
| | Reports whether name matching ignores case.
|
| auto | get_ignore_underscore () const -> bool |
| | Reports whether name matching ignores underscores.
|
| auto | get_configurable () const -> bool |
| | Reports whether the option may be set from a configuration file.
|
| auto | get_disable_flag_override () const -> bool |
| | Reports whether flag overrides are rejected.
|
| auto | get_delimiter () const -> char |
| | Returns the character that splits a value into several.
|
| auto | get_always_capture_default () const -> bool |
| | Reports whether defaults are captured automatically.
|
| auto | get_multi_option_policy () const -> multi_option_policy_t |
| | Returns what happens to surplus values.
|
| auto | get_callback_priority () const -> callback_priority_t |
| | Returns when this option's callback runs.
|
| template<typename self_t> |
| auto | take_last (this self_t &self) -> self_t * |
| | Keeps only the last value given.
|
| template<typename self_t> |
| auto | take_first (this self_t &self) -> self_t * |
| | Keeps only the first value given.
|
| template<typename self_t> |
| auto | take_all (this self_t &self) -> self_t * |
| | Keeps every value given.
|
| template<typename self_t> |
| auto | join (this self_t &self) -> self_t * |
| | Joins every value given.
|
| template<typename self_t> |
| auto | join (this self_t &self, char delim) -> self_t * |
| | Joins every value given, using a specific delimiter.
|
| template<typename self_t> |
| auto | configurable (this self_t &self, bool value=true) -> self_t * |
| | Allows or forbids setting the option from a configuration file.
|
| template<typename self_t> |
| auto | delimiter (this self_t &self, char value='\0') -> self_t * |
| | Sets the character that splits a value into several.
|
|
|
std::string | group_ = std::string("OPTIONS") |
| | The help group this option is listed under.
|
|
bool | required_ {false} |
| | Whether the option must appear.
|
|
bool | ignore_case_ {false} |
| | Whether name matching ignores case.
|
|
bool | ignore_underscore_ {false} |
| | Whether name matching ignores underscores.
|
|
bool | configurable_ {true} |
| | Whether the option may be set from a configuration file.
|
|
bool | disable_flag_override_ {false} |
| | Whether --no-flag style overrides are rejected.
|
|
char | delimiter_ {'\0'} |
| | Character that splits a single value into several.
|
|
bool | always_capture_default_ {false} |
| | Whether the bound value's default is captured automatically.
|
|
multi_option_policy_t | multi_option_policy_ {multi_option_policy_t::reject} |
| | What to do with surplus values.
|
|
callback_priority_t | callback_priority_ {callback_priority_t::normal} |
| | When this option's callback runs.
|
Settings shared by option_t and option_defaults_t.
Every setter returns a pointer to the derived type so that chaining keeps working on the concrete class. That used to be done with CRTP; it now uses an explicit object parameter, so the class is no longer a template.