#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 |
| wibble::commandline::StandardParser::StandardParser | ( | const std::string & | appname, | |
| const std::string & | version | |||
| ) | [inline] |
| void wibble::commandline::StandardParser::outputHelp | ( | std::ostream & | out | ) |
References wibble::commandline::Engine::foundCommand(), help, m_version, wibble::commandline::Engine::name(), and wibble::commandline::Help::outputHelp().
Referenced by parse(), and 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::BoolOption::boolValue(), help, m_version, wibble::commandline::Engine::name(), outputHelp(), wibble::commandline::Help::outputVersion(), wibble::commandline::Parser::parse(), and version.
Referenced by wibble::commandline::StandardParserWithManpage::parse().
std::string wibble::commandline::StandardParser::m_version [protected] |
Referenced by parse(), and withCommands().
1.5.6