Command-line parser. More...
Public Member Functions | |
getopt () | |
Collect program_option objects. | |
void | operator() (int, const char *const *) const |
Parse command-line arguments. | |
std::string | usage (std::string_view p) const |
Return a string describing program_option objects. | |
Command-line parser.
The options defined by initialize
are not recognized.
|
explicit |
Collect program_option
objects.
void operator() | ( | int | argc, |
const char *const * | argv | ||
) | const |
Parse command-line arguments.
Populate program_option
objects with the results.
std::logic_error | if parsing fails |
std::string usage | ( | std::string_view | p | ) | const |
Return a string describing program_option
objects.
p | program name |