#include <options.h>
|
| SingleOption (const std::string &name) |
|
| SingleOption (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
|
ArgList::iterator | parse (ArgList &list, ArgList::iterator begin) |
| Parse the next commandline parameter after the short form of the command has been found. More...
|
|
bool | parse (const std::string ¶m) |
| Parse the commandline parameter of a long commandline switch. More...
|
|
void | parse_noarg () |
| Notify that the option is present in the command line, but has no arguments. More...
|
|
Protected Member Functions inherited from wibble::commandline::Option |
| Option (const std::string &name) |
|
| Option (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
|
virtual bool | arg_is_optional () const |
| Return true if the argument to this function can be omitted. More...
|
|
◆ SingleOption() [1/2]
◆ SingleOption() [2/2]
◆ boolValue()
◆ intValue()
◆ parse() [1/2]
Parse the next commandline parameter after the short form of the command has been found.
It may or may not remove the parameter from the list, depending on if the option wants a value or not.
Signal that the option has been found, with the given argument (or 0 if no argument).
- Returns
- true if it used the argument, else false
Implements wibble::commandline::Option.
References wibble::commandline::ArgList::eraseAndAdvance().
◆ parse() [2/2]
Parse the commandline parameter of a long commandline switch.
- Returns
- true if the parameter has been used
Implements wibble::commandline::Option.
◆ parse_noarg()
◆ setValue()
◆ stringValue()
◆ value()
◆ Engine
◆ OptionGroup
◆ m_value
The documentation for this class was generated from the following file: