Parser for commandline arguments, with builting help functions and manpage generation. More...
#include <parser.h>
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 Attributes | |
StringOption * | manpage |
Protected Attributes | |
int | m_section |
std::string | m_author |
Parser for commandline arguments, with builting help functions and manpage generation.
wibble::commandline::StandardParserWithManpage::StandardParserWithManpage | ( | const std::string & | appname, | |
const std::string & | version, | |||
int | section, | |||
const std::string & | author | |||
) | [inline] |
bool wibble::commandline::StandardParserWithManpage::parse | ( | int | argc, | |
const char * | argv[] | |||
) |
Parse the commandline.
Reimplemented from wibble::commandline::StandardParser.
Reimplemented in wibble::commandline::StandardParserWithMandatoryCommand.
References wibble::commandline::Option::isSet(), m_author, m_section, wibble::commandline::StandardParser::m_version, manpage, wibble::commandline::Engine::name(), wibble::commandline::Manpage::output(), wibble::commandline::StandardParser::parse(), wibble::commandline::Manpage::readHooks(), and wibble::commandline::SingleOption< T >::value().
Referenced by wibble::commandline::StandardParserWithMandatoryCommand::parse().
std::string wibble::commandline::StandardParserWithManpage::m_author [protected] |
Referenced by parse().
int wibble::commandline::StandardParserWithManpage::m_section [protected] |
Referenced by parse().
Referenced by parse(), StandardParserWithManpage(), and withCommands().