|
RADLib
RADical C++ application framework
|
Parsed command-line result. More...
#include <RADCLI.h>
Public Member Functions | |
| bool | ok () const |
| Returns true when parsing succeeded. More... | |
| const std::string & | error () const |
| Returns parser error text. More... | |
| bool | has (const std::string &name) const |
| Returns true when option was explicitly provided. More... | |
| std::string | value (const std::string &name, const std::string &defaultValue={}) const |
| Returns option value or defaultValue. More... | |
| const std::vector< std::string > & | positionals () const |
| Returns positional arguments. More... | |
Friends | |
| class | CommandLineParser |
Parsed command-line result.
| const std::string& RADCLI::ParseResult::error | ( | ) | const |
Returns parser error text.
| bool RADCLI::ParseResult::has | ( | const std::string & | name | ) | const |
Returns true when option was explicitly provided.
| bool RADCLI::ParseResult::ok | ( | ) | const |
Returns true when parsing succeeded.
| const std::vector<std::string>& RADCLI::ParseResult::positionals | ( | ) | const |
Returns positional arguments.
| std::string RADCLI::ParseResult::value | ( | const std::string & | name, |
| const std::string & | defaultValue = {} |
||
| ) | const |
Returns option value or defaultValue.
|
friend |