A command of a ALib CLI command-line.
Definition at line 474 of file arguments.inl.
Public Field Index: | |
| CommandDecl * | Declaration = nullptr |
| The underlying declaration. | |
| ListMA< Parameter *, Recycling::Shared > | ParametersMandatory |
| Mandatory parameters parsed. | |
| ListMA< Parameter *, Recycling::Shared > | ParametersOptional |
| Optional parameters parsed. | |
| Public Field Index: inherited from alib::cli::Parsed | |
| CommandLine * | CmdLine |
| The cli command-line. | |
| integer | ConsumedArguments |
| integer | Position |
Public Method Index: | |
| Command (CommandLine *cmdLine) | |
| Parameter * | GetParsedParameter (const String &name) |
| String | GetParsedParameterArg (const String &name) |
| bool | Read (CommandDecl &decl) |
| Public Method Index: inherited from alib::cli::Parsed | |
| Parsed (CommandLine *cmdLine) | |
| CommandDecl* alib::cli::Command::Declaration = nullptr |
The underlying declaration.
Definition at line 477 of file arguments.inl.
Mandatory parameters parsed.
Definition at line 480 of file arguments.inl.
Optional parameters parsed.
Definition at line 483 of file arguments.inl.
|
inline |
Constructor
| cmdLine | The command-line instance. |
Definition at line 524 of file commandline.inl.
Searches in ParametersMandatory and ParametersOptional for parameter name.
| name | The declaration name of the parameter. |
nullptr if parameter was not parsed. Definition at line 174 of file arguments.cpp.
Searches in ParametersMandatory and ParametersOptional for parameter name and returns its (first) argument.
| name | The declaration name of the parameter. |
Definition at line 196 of file arguments.cpp.
| bool alib::cli::Command::Read | ( | CommandDecl & | decl | ) |
Tries to read the object from the front of StdVectorMA< integer > ArgsLeft.
| decl | The declaration used for reading. |
true on success, false otherwise. Definition at line 132 of file arguments.cpp.