cli20 0.1.2
A C++20 typed-schema command-line parser
Loading...
Searching...
No Matches
cli::action Namespace Reference

Actions that control the parser's control flow (help, exit). More...

Classes

struct  Custom
 Wraps a user-defined callable as a non-terminal action pipeline step. More...
struct  PrintHelp
 Wraps the current value in a HelpRequested<T> sentinel type. More...
struct  ExitSuccess
 Terminates the pipeline by returning a ParseError with code exit_success (or help_requested when preceded by PrintHelp). More...

Variables

constexpr auto print_help = Action<PrintHelp{}>{}
constexpr auto exit_success = Action<ExitSuccess{}>{}
template<auto Fn>
constexpr auto custom = Action<Custom<Fn>{}>{}

Detailed Description

Actions that control the parser's control flow (help, exit).

Variable Documentation

◆ custom

template<auto Fn>
auto cli::action::custom = Action<Custom<Fn>{}>{}
inlineconstexpr

Definition at line 2005 of file action.hh.

◆ exit_success

auto cli::action::exit_success = Action<ExitSuccess{}>{}
inlineconstexpr

Definition at line 2003 of file action.hh.

◆ print_help

auto cli::action::print_help = Action<PrintHelp{}>{}
inlineconstexpr

Definition at line 2002 of file action.hh.