|
| | Help (bool throwExceptionOnPrint=true) |
| |
| void | setExecutable (const String &exe) |
| | Set executable name.
|
| |
| void | setAppDescription (const String &desc) |
| | Set description for the application.
|
| |
| void | setLineLength (String::size_type length) |
| | Set line length for the help.
|
| |
| void | setPrinter (std::unique_ptr< HelpPrinterIface > p) |
| | Set printer.
|
| |
| template<typename T > |
| | Arg (Char flag, T &&name, bool isWithValue=false, bool isRequired=false) |
| | Construct argument with flag and name.
|
| |
| | Arg (Char flag, bool isWithValue=false, bool isRequired=false) |
| | Construct argument only with flag, without name.
|
| |
| template<typename T > |
| | Arg (T &&name, bool isWithValue=false, bool isRequired=false) |
| | Construct argument only with name, without flag.
|
| |
| virtual | ~Arg () |
| |
| ArgType | type () const override |
| |
| String | name () const override |
| |
| bool | isWithValue () const override |
| |
| void | setWithValue (bool on=true) |
| | Set is this argument with value.
|
| |
| bool | isRequired () const override |
| |
| void | setRequired (bool on=true) |
| | Set required.
|
| |
| bool | isDefined () const override |
| |
| void | setDefined (bool on=true) |
| | Set defined.
|
| |
| virtual const String & | value () const |
| |
| virtual void | setValue (const String &v) |
| | Set value.
|
| |
| const String & | flag () const override |
| |
| void | setFlag (Char f) |
| | Set flag.
|
| |
| const String & | argumentName () const override |
| |
| void | setArgumentName (const String &name) |
| | Set argument name.
|
| |
| const String & | valueSpecifier () const override |
| |
| void | setValueSpecifier (const String &vs) |
| | Set value specifier.
|
| |
| const String & | description () const override |
| |
| void | setDescription (const String &desc) |
| | Set description.
|
| |
| const String & | longDescription () const override |
| |
| void | setLongDescription (const String &desc) |
| | Set long description.
|
| |
| virtual const String & | defaultValue () const |
| |
| virtual void | setDefaultValue (const String &v) |
| | Set default value.
|
| |
| bool | isMisspelledName (const String &name, StringList &possibleNames) const override |
| |
| void | clear () override |
| | Clear state of the argument.
|
| |
| | ArgIface () |
| |
| virtual | ~ArgIface () |
| |
| CmdLine * | cmdLine () const |
| |
Help argument.
Definition at line 74 of file help.hpp.