Public Member Functions |
| StandardParserWithManpage (const std::string &appname, const std::string &version, int section, const std::string &author) |
bool | parse (int argc, const char *argv[]) |
| Parse the commandline.
|
Public Member Functions inherited from wibble::commandline::StandardParser |
| StandardParser (const std::string &appname, const std::string &version) |
void | outputHelp (std::ostream &out) |
Public Member Functions inherited from wibble::commandline::Parser |
| Parser (const std::string &name, const std::string &usage=std::string(), const std::string &description=std::string(), const std::string &longDescription=std::string()) |
bool | hasNext () const |
std::string | next () |
Public Member Functions inherited from wibble::commandline::Engine |
const std::string & | name () const |
Option * | add (Option *o) |
| Add an Option to this engine.
|
OptionGroup * | add (OptionGroup *group) |
| Add an OptionGroup to this engine.
|
Engine * | add (Engine *o) |
| Add a Engine to this engine.
|
template<typename T > |
T * | create (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
| Create an option.
|
template<typename T > |
T * | add (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
| Create an option and add to this engine.
|
OptionGroup * | createGroup (const std::string &description) |
| Create an OptionGroup.
|
OptionGroup * | addGroup (const std::string &description) |
| Create an OptionGroup and add it to this engine.
|
Engine * | createEngine (const std::string &name, const std::string &usage=std::string(), const std::string &description=std::string(), const std::string &longDescription=std::string()) |
| Create a Engine.
|
Engine * | addEngine (const std::string &name, const std::string &usage=std::string(), const std::string &description=std::string(), const std::string &longDescription=std::string()) |
| Create a Engine and add it to this engine as a command.
|
const std::vector< OptionGroup * > & | groups () const |
| Get the OptionGroups that have been added to this engine.
|
const std::vector< Option * > & | options () const |
| Get the Options that have been added to this engine.
|
const std::vector< Engine * > & | commands () const |
| Get the Engines that have been added to this engine.
|
Engine * | command (const std::string &name) const |
bool | hasOptions () const |
| Returns true if this Engine has options to parse.
|
Engine * | foundCommand () const |
| Return the command that has been found in the commandline, or NULL if none have been found.
|
void | dump (std::ostream &out, const std::string &prefix=std::string()) |
Public Member Functions inherited from wibble::commandline::Managed |
virtual | ~Managed () |
Parser for commandline arguments, with builting help functions and manpage generation.