A command of a ALib CLI command line.
Definition at line 538 of file arguments.inl.
Public Field Index: | |
CommandDecl * | Declaration = nullptr |
The underlying declaration. | |
List< MonoAllocator, Parameter *, Recycling::Shared > | ParametersMandatory |
Mandatory parameters parsed. | |
List< MonoAllocator, Parameter *, Recycling::Shared > | ParametersOptional |
Optional parameters parsed. | |
![]() | |
CommandLine * | CmdLine |
The cli command line. | |
integer | ConsumedArguments |
integer | Position |
Public Method Index: | |
Command (CommandLine *cmdLine) | |
ALIB_DLL Parameter * | GetParsedParameter (const String &name) |
ALIB_DLL String | GetParsedParameterArg (const String &name) |
ALIB_DLL bool | Read (CommandDecl &decl) |
![]() | |
Parsed (CommandLine *cmdLine) | |
CommandDecl* alib::cli::Command::Declaration = nullptr |
The underlying declaration.
Definition at line 541 of file arguments.inl.
List<MonoAllocator, Parameter*, Recycling::Shared> alib::cli::Command::ParametersMandatory |
Mandatory parameters parsed.
Definition at line 544 of file arguments.inl.
List<MonoAllocator, Parameter*, Recycling::Shared> alib::cli::Command::ParametersOptional |
Optional parameters parsed.
Definition at line 547 of file arguments.inl.
|
inline |
Constructor
cmdLine | The command line instance. |
Definition at line 534 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 185 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 209 of file arguments.cpp.
bool alib::cli::Command::Read | ( | CommandDecl & | decl | ) |
Tries to read the object from the front of CommandLine::ArgsLeft.
decl | The declaration used for reading. |
true
on success, false
otherwise. Definition at line 140 of file arguments.cpp.