Polyhedral-net Splines
Loading...
Searching...
No Matches
SimpleArg::Opt Struct Reference

An option (named or positional). More...

#include <simple_arg.hpp>

Public Attributes

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).

Detailed Description

An option (named or positional).


The documentation for this struct was generated from the following file: