The common implementation.
|
| BaseFlag (const char *arg_type, const char *short_opt, const char *help) |
| Create a new BaseFlag. More...
|
|
char | short_opt () const |
| Get the flag short option.
|
|
const char * | arg_type () const |
| Get the flag argument type.
|
|
std::string | help () const |
| Get the flag help string.
|
|
bool | present () const |
| Check if the flag was present on the command line. Good for switching behaviour when a flag is used. More...
|
|
void | MarkAsPresent () |
| Set that the flag was present on the command line.
|
|
virtual const char * | name () const =0 |
| Get the flag name.
|
|
virtual bool | has_arg () const =0 |
| Whether the flag requires an argument.
|
|
virtual bool | SetValue (const std::string &input)=0 |
| Set the flag value. More...
|
|