|
CPP-AP 3.0.1
Command-line argument parser for C++20
|
Classes | |
| class | argument_base |
| Argument class interface. More... | |
| struct | argument_name |
| Structure holding the argument's name. More... | |
| struct | argument_token |
| Structure representing a single command-line argument token. More... | |
| class | help_builder |
| A help message builder class. More... | |
| struct | parameter_descriptor |
| A structure used to represent an argument's parameter description. More... | |
Enumerations | |
| enum class | argument_name_discriminator : bool { n_primary , n_secondary } |
| Argument name member discriminator. More... | |
Functions | |
| void | add_default_argument (const default_argument arg_discriminator, argument_parser &arg_parser) noexcept |
| Adds a predefined/default positional argument to the parser. | |
|
strong |
Argument name member discriminator.
This discriminator type is used in the argument initializing methods of the argument_parser class.
| Enumerator | |
|---|---|
| n_primary | Represents the primary name (used with a long flag prefix –). |
| n_secondary | Represents the secondary name (used with a short flag prefix –). |
Definition at line 144 of file argument_name.hpp.
|
inlinenoexcept |
Adds a predefined/default positional argument to the parser.
| arg_discriminator | The default argument discriminator. |
| arg_parser | The argument parser to which the argument will be added. |
Definition at line 1585 of file argument_parser.hpp.