|
RADLib
RADical C++ application framework
|
Small command-line parser for RADLib tools and examples. More...
#include <RADCLI.h>
Public Member Functions | |
| CommandLineParser (std::string applicationName={}) | |
| Creates a parser for applicationName. More... | |
| void | setDescription (std::string description) |
| Sets a short application description. More... | |
| void | addOption (Option option) |
| Adds an option. More... | |
| ParseResult | parse (int argc, char **argv) const |
| Parses argc/argv. More... | |
| ParseResult | parse (const std::vector< std::string > &args) const |
| Parses vector arguments where args[0] is the program name. More... | |
| std::string | helpText () const |
| Builds help text. More... | |
Small command-line parser for RADLib tools and examples.
|
explicit |
Creates a parser for applicationName.
| void RADCLI::CommandLineParser::addOption | ( | Option | option | ) |
Adds an option.
| std::string RADCLI::CommandLineParser::helpText | ( | ) | const |
Builds help text.
| ParseResult RADCLI::CommandLineParser::parse | ( | const std::vector< std::string > & | args | ) | const |
Parses vector arguments where args[0] is the program name.
| ParseResult RADCLI::CommandLineParser::parse | ( | int | argc, |
| char ** | argv | ||
| ) | const |
Parses argc/argv.
| void RADCLI::CommandLineParser::setDescription | ( | std::string | description | ) |
Sets a short application description.