CPP-AP 2.2.6
Command-line argument parser for C++20
Loading...
Searching...
No Matches
argument_parser.hpp File Reference

Main library header file. Defines the argument_parser class. More...

#include "argument/default.hpp"
#include "argument/optional.hpp"
#include "argument/positional.hpp"
#include "detail/argument_token.hpp"
#include "detail/concepts.hpp"
#include <algorithm>
#include <format>
#include <ranges>
#include <span>

Go to the source code of this file.

Classes

class  ap::argument_parser
 Main argument parser class. More...
 

Functions

void ap::detail::add_default_argument (const argument::default_positional arg_discriminator, argument_parser &arg_parser) noexcept
 Adds a predefined/default positional argument to the parser.
 
void ap::detail::add_default_argument (const argument::default_optional arg_discriminator, argument_parser &arg_parser) noexcept
 Adds a predefined/default optional argument to the parser.
 

Detailed Description

Main library header file. Defines the argument_parser class.

Definition in file argument_parser.hpp.

Function Documentation

◆ add_default_argument() [1/2]

void ap::detail::add_default_argument ( const argument::default_optional  arg_discriminator,
argument_parser arg_parser 
)
inlinenoexcept

Adds a predefined/default optional argument to the parser.

Parameters
arg_discriminatorThe default argument discriminator.
arg_parserThe argument parser to which the argument will be added.

Definition at line 819 of file argument_parser.hpp.

◆ add_default_argument() [2/2]

void ap::detail::add_default_argument ( const argument::default_positional  arg_discriminator,
argument_parser arg_parser 
)
inlinenoexcept

Adds a predefined/default positional argument to the parser.

Parameters
arg_discriminatorThe default argument discriminator.
arg_parserThe argument parser to which the argument will be added.

Definition at line 798 of file argument_parser.hpp.