#include <arguments.hpp>
A declaration for a cli::Parameter.
Definition at line 257 of file arguments.hpp.
Public Fields | |
List< String, Recycling::Shared > | Args |
ParameterDecl * | Declaration = nullptr |
![]() | |
CommandLine * | CmdLine |
integer | Position |
integer | QtyArgsConsumed |
Public Methods | |
Parameter (CommandLine *cmdLine) | |
ALIB_API bool | Read (ParameterDecl &decl) |
![]() | |
Parsed (CommandLine *cmdLine) | |
|
inline |
Constructor
cmdLine | The command line instance. |
Definition at line 600 of file commandline.hpp.
bool 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::QtyArgsConsumed 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.
List<String, Recycling::Shared> Args |
Arguments belonging to us.
Definition at line 263 of file arguments.hpp.
ParameterDecl* Declaration = nullptr |
The underlying declaration.
Definition at line 260 of file arguments.hpp.