Command-line parser with subcommands, typed and validated values and generated help.
Definition ArgParser.hpp:17
ParseStatus
Outcome of ArgParser::parse(); Help and Version mean the user asked for that text.
Definition ParseResult.hpp:9
Result of ArgParser::parse(), true when the arguments are valid.
Definition ParseResult.hpp:12
ParseStatus status
Definition ParseResult.hpp:13
std::string message
Text to print for help, version and errors.
Definition ParseResult.hpp:15
void print() const
Prints the message, to stderr for errors and stdout otherwise.
int exitCode() const noexcept
Exit code for main: 2 for errors, 0 otherwise.
Definition ParseResult.hpp:19