#include <Commandline.h>
Inheritance diagram for Tagcoll::commandline::OptionParser:
Public Member Functions | |
OptionParser (const std::string &name) | |
void | add (Option *o) |
void | add (OptionGroup *group) |
const std::vector< OptionGroup * > & | groups () const |
const std::vector< Option * > & | options () const |
virtual iter | parse (arglist &list, iter begin) |
Parse all the switches in list, leaving only the non-switch arguments or the arguments following "--". | |
Public Attributes | |
std::string | primaryAlias |
std::vector< std::string > | aliases |
std::string | usage |
std::string | description |
std::string | longDescription |
std::string | examples |
Tagcoll::commandline::OptionParser::OptionParser | ( | const std::string & | name | ) | [inline] |
void Tagcoll::commandline::OptionParser::add | ( | OptionGroup * | group | ) |
void Tagcoll::commandline::OptionParser::add | ( | Option * | o | ) |
const std::vector<OptionGroup*>& Tagcoll::commandline::OptionParser::groups | ( | ) | const [inline] |
const std::vector<Option*>& Tagcoll::commandline::OptionParser::options | ( | ) | const [inline] |
Parse all the switches in list, leaving only the non-switch arguments or the arguments following "--".
Implements Tagcoll::commandline::Parser.
std::vector<std::string> Tagcoll::commandline::OptionParser::aliases |
std::string Tagcoll::commandline::OptionParser::description |
std::string Tagcoll::commandline::OptionParser::examples |
std::string Tagcoll::commandline::OptionParser::primaryAlias |
std::string Tagcoll::commandline::OptionParser::usage |