CPP-ARGON 4.0.0
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 "argon/argument.hpp"
#include "argon/argument_group.hpp"
#include "argon/detail/argument_token.hpp"
#include "argon/types.hpp"
#include "argon/util/ranges.hpp"
#include <algorithm>
#include <format>
#include <iostream>
#include <ranges>
#include <span>

Go to the source code of this file.

Classes

class  argon::argument_parser
 The main argument parser class. More...
 
struct  argon::argument_parser::parsing_state
 A collection of values used during the parsing process. More...
 

Namespaces

namespace  argon
 
namespace  argon::detail
 

Enumerations

enum class  argon::default_argument : std::uint8_t {
  argon::p_input , argon::p_output , argon::o_help , argon::o_version ,
  argon::o_input , argon::o_output , argon::o_multi_input , argon::o_multi_output
}
 The enumeration of default arguments provided by the library. More...
 
enum class  argon::unknown_policy : std::uint8_t { argon::fail , argon::warn , argon::ignore , argon::as_values }
 The enumeration of policies for handling unknown arguments. More...
 

Functions

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

Detailed Description

Main library header file. Defines the argument_parser class.

Definition in file argument_parser.hpp.