A declaration for a cli::Parameter.
Definition at line 211 of file arguments.inl.
Public Field Index: | |
| List< MonoAllocator, String, Recycling::Shared > | Args |
| Arguments belonging to us. | |
| ParameterDecl * | Declaration = nullptr |
| The underlying declaration. | |
Public Field Index: inherited from alib::cli::Parsed | |
| CommandLine * | CmdLine |
| The cli command line. | |
| integer | ConsumedArguments |
| integer | Position |
Public Method Index: | |
| Parameter (CommandLine *cmdLine) | |
| ALIB_DLL bool | Read (ParameterDecl &decl) |
Public Method Index: inherited from alib::cli::Parsed | |
| Parsed (CommandLine *cmdLine) | |
| List<MonoAllocator, String, Recycling::Shared> alib::cli::Parameter::Args |
Arguments belonging to us.
Definition at line 217 of file arguments.inl.
| ParameterDecl* alib::cli::Parameter::Declaration = nullptr |
The underlying declaration.
Definition at line 214 of file arguments.inl.
|
inline |
Constructor
| cmdLine | The command line instance. |
Definition at line 511 of file commandline.inl.
| bool alib::cli::Parameter::Read | ( | ParameterDecl & | decl | ) |
Tries to read the object from the front of CommandLine::ArgsLeft. Success is indicated by setting inherited fields Parsed::Position and Parsed::ConsumedArguments to values greater than 0.
If it could not be decided if the actual CLI argument contains this parameter, false is returned to indicate that parsing commands has to stop now.
This is done in the following cases:
true.-1.See ReadNextCommands for details
| decl | The declaration used for reading |
true on success, false indicates that parsing has to end here. Definition at line 217 of file arguments.cpp.