|
| | CommandLineParameter (const String &name, const String &shortName, const String &valueName, const String &validateValue, const Visibility &useWithCommands, const String &help) |
| |
| String | printableName () const override |
| |
| void | validate (const String &value) const override |
| |
| bool | hasValue () const override |
| |
| Type | type () const override |
| |
Public Member Functions inherited from sptk::CommandLine::CommandLineElement |
| | CommandLineElement (const String &name, const String &shortName, const String &help, const Visibility &useWithCommands) |
| |
| virtual | ~CommandLineElement ()=default |
| |
| virtual Type | type () const |
| |
| virtual String | name () const |
| |
| virtual String | shortName () const |
| |
| virtual bool | hasValue () const |
| |
| virtual void | validate (const String &value) const |
| |
| virtual String | printableName () const |
| |
| bool | useWithCommand (const String &command) const |
| |
| void | formatHelp (size_t textWidth, Strings &formattedText) const |
| |
| void | printHelp (size_t nameWidth, size_t textWidth, const String &optionDefaultValue) const |
| |
Command line parameter
Command line argument that starts from '-' character and expects a value. It may have a long name that starts from '–', and/or a short name, that starts from '-'. Value has human readable name, such as 'file name', 'text', 'number', etc.. and optional validation pattern that can be regular expression or empty string.