Inherits ReferenceCountedObject.
Inherited by ArgumentParser::BooleanOption, ArgumentParser::CardinalOption, ArgumentParser::EnumOption, ArgumentParser::FlagOption, ArgumentParser::RealOption, ArgumentParser::RegExpOption, and ArgumentParser::StringOption.
◆ Flag
Enumerator |
---|
MANDATORY | Option is required.
|
STRICT | Option must be occur at most once.
|
DEPRECATED | Option is deprecated.
|
EXPLICIT | Value must be given if option is specified.
|
OVERRIDE | The last occurrence is the only significant.
|
◆ getFlags()
unsigned int ArgumentParser::Option::getFlags |
( |
| ) |
const |
|
inlinenoexcept |
◆ getName()
const String& ArgumentParser::Option::getName |
( |
| ) |
const |
|
inlinenoexcept |
Returns the long name of the option.
◆ getShortName()
char ArgumentParser::Option::getShortName |
( |
| ) |
const |
|
inlinenoexcept |
Returns the short name of the option.
◆ hasShortName()
bool ArgumentParser::Option::hasShortName |
( |
| ) |
const |
|
inlinenoexcept |
Returns true if the option has a short name.