An option (named or positional).
More...
#include <simple_arg.hpp>
|
|
char | s {} |
| | Short name (e.g. 'h' for -h).
|
|
std::string | l |
| | Long name (e.g. "help" for –help).
|
|
std::string | desc |
| | Description of the option.
|
|
std::string | default_str |
| | Default value as string (empty if none).
|
|
std::string | type_name |
| | Type name (e.g. "int", "float", "string", "enum", "flag").
|
|
bool | takes_val {} |
| | Whether the option takes a value (true) or is a flag (false).
|
|
bool | required {} |
| | Whether the option is required (true) or optional (false).
|
|
std::vector< std::string > | choices |
| | Allowed choices (for enum types).
|
An option (named or positional).
The documentation for this struct was generated from the following file: