A list of option definitions used to inform how to parse arguments. More...
#include <argagg.hpp>
Public Member Functions | |
parser_results | parse (int argc, const char **argv) const |
Parses the provided command line arguments and returns the results as parser_results. More... | |
parser_results | parse (int argc, char **argv) const |
Through strict interpretation of pointer casting rules, despite this being a safe operation, C++ doesn't allow implicit casts from char** to const char** so here's an overload that performs a const_cast, which is typically frowned upon but is safe here. More... | |
Public Attributes | |
std::vector< definition > | definitions |
Vector of the option definitions which inform this parser how to parse the command line arguments. More... | |
A list of option definitions used to inform how to parse arguments.
Definition at line 536 of file argagg.hpp.
|
inline |
Parses the provided command line arguments and returns the results as parser_results.
Definition at line 1061 of file argagg.hpp.
|
inline |
Through strict interpretation of pointer casting rules, despite this being a safe operation, C++ doesn't allow implicit casts from char**
to const char**
so here's an overload that performs a const_cast, which is typically frowned upon but is safe here.
Definition at line 1291 of file argagg.hpp.
std::vector<definition> argagg::parser::definitions |
Vector of the option definitions which inform this parser how to parse the command line arguments.
Definition at line 543 of file argagg.hpp.