wibble 0.1.28
|
Parser for commandline arguments, with builting help functions. More...
#include <parser.h>
Public Member Functions | |
StandardParser (const std::string &appname, const std::string &version) | |
void | outputHelp (std::ostream &out) |
bool | parse (int argc, const char *argv[]) |
Parse the commandline. | |
Public Attributes | |
OptionGroup * | helpGroup |
BoolOption * | help |
BoolOption * | version |
Protected Attributes | |
std::string | m_version |
Parser for commandline arguments, with builting help functions.
wibble::commandline::StandardParser::StandardParser | ( | const std::string & | appname, |
const std::string & | version | ||
) | [inline] |
void wibble::commandline::StandardParser::outputHelp | ( | std::ostream & | out | ) |
References wibble::commandline::Help::outputHelp().
Referenced by withCommands().
bool wibble::commandline::StandardParser::parse | ( | int | argc, |
const char * | argv[] | ||
) |
Parse the commandline.
Reimplemented from wibble::commandline::Parser.
Reimplemented in wibble::commandline::StandardParserWithManpage, and wibble::commandline::StandardParserWithMandatoryCommand.
References wibble::commandline::Help::outputVersion().
Referenced by StandardParser(), and withCommands().
std::string wibble::commandline::StandardParser::m_version [protected] |
Referenced by withCommands().