CPP-AP 2.7.0
Command-line argument parser for C++20
Loading...
Searching...
No Matches
ap Namespace Reference

Namespaces

namespace  action
 
namespace  action_type
 
namespace  argument
 
namespace  detail
 
namespace  nargs
 

Classes

class  argument_parser
 Main argument parser class. More...
 
struct  argument_parser_exception
 Base type for the argument parser functionality errors/exceptions. More...
 
struct  invalid_configuration
 Exception type used for invalid configuration of an argument parser or its arguments. More...
 
struct  lookup_failure
 Exception type used for element lookup errors. More...
 
struct  parsing_failure
 Exception type used for errors encountered during the argument parsing operation. More...
 
struct  type_error
 Exception type used for type-related errors. More...
 
struct  version
 A helper structure used to represent a program's version. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const argument_parser &) noexcept
 

Function Documentation

◆ operator<<()

std::ostream & ap::operator<< ( std::ostream &  os,
const argument_parser  
)
noexcept

An os << parser operation is equivalent to a parser.print_config(_verbose, os) call, where _verbose is the inner verbosity mode, which can be set with the verbose function.

Parameters
osOutput stream.
parserThe argument parser to print.
Returns
The modified output stream.

Definition at line 626 of file argument_parser.hpp.