|
CPP-AP 3.0.1
Command-line argument parser for C++20
|
Main library header file. Defines the argument_parser class.
More...
#include "argument.hpp"#include "argument_group.hpp"#include "detail/argument_token.hpp"#include "types.hpp"#include <algorithm>#include <format>#include <iostream>#include <ranges>#include <span>Go to the source code of this file.
Classes | |
| class | ap::argument_parser |
| The main argument parser class. More... | |
| struct | ap::argument_parser::parsing_state |
| A collection of values used during the parsing process. More... | |
Namespaces | |
| namespace | ap |
| namespace | ap::detail |
Enumerations | |
| enum class | ap::default_argument : std::uint8_t { ap::p_input , ap::p_output , ap::o_help , ap::o_version , ap::o_input , ap::o_output , ap::o_multi_input , ap::o_multi_output } |
| The enumeration of default arguments provided by the library. More... | |
| enum class | ap::unknown_policy : std::uint8_t { ap::fail , ap::warn , ap::ignore , ap::as_values } |
| The enumeration of policies for handling unknown arguments. More... | |
Functions | |
| void | ap::detail::add_default_argument (const default_argument arg_discriminator, argument_parser &arg_parser) noexcept |
| Adds a predefined/default positional argument to the parser. | |
Main library header file. Defines the argument_parser class.
Definition in file argument_parser.hpp.