|
#include <CommandLine.h>
Public Member Functions | |
| CommandLineArgument (const String &name, const String &help) | |
| ~CommandLineArgument () override=default | |
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 |
Additional Inherited Members | |
Public Types inherited from sptk::CommandLine::CommandLineElement | |
| enum class | Type { IS_UNKNOWN , IS_COMMAND , IS_OPTION , IS_VALUE_OPTION } |
Command line argument
Command line argument that doesn't start from '-' character and doesn't expect a value, AKA command.
| sptk::CommandLine::CommandLineArgument::CommandLineArgument | ( | const String & | name, |
| const String & | help | ||
| ) |
Constructor
| name | Element name |
| help | Help (description) for the element |
|
overridedefault |
Destructor