RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
RST::Parser Namespace Reference

Command-line parser with subcommands, typed and validated values and generated help. More...

Classes

class  ArgParser
 Command-line parser with flags, options, positionals, subcommands and generated help. More...
 
class  Argument
 A flag, option or positional argument, configured with chained calls. More...
 
struct  Nargs
 How many values an option or positional takes. More...
 
struct  ParseResult
 Result of ArgParser::parse(), true when the arguments are valid. More...
 

Enumerations

enum class  ParseStatus : std::uint8_t { Ok , Help , Version , Error }
 Outcome of ArgParser::parse(); Help and Version mean the user asked for that text. More...
 

Detailed Description

Command-line parser with subcommands, typed and validated values and generated help.

Nothing throws: ArgParser::parse() returns a ParseResult holding the help, version or error text to print.

Enumeration Type Documentation

◆ ParseStatus

enum class RST::Parser::ParseStatus : std::uint8_t
strong

Outcome of ArgParser::parse(); Help and Version mean the user asked for that text.

Enumerator
Ok 
Help 
Version 
Error