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

Terminates the pipeline by returning a ParseError with code exit_success (or help_requested when preceded by PrintHelp). More...

#include <action.hh>

Public Types

template<class Prev>
using after_type = Prev
template<class Prev>
using storage_type = std::monostate

Public Member Functions

template<class Arg, class T>
auto operator() (ActionCtx< Arg > ctx, ActionResult< T > input) const -> ActionResult< T >

Static Public Attributes

template<class Prev>
static constexpr bool accepts_input = true

Detailed Description

Terminates the pipeline by returning a ParseError with code exit_success (or help_requested when preceded by PrintHelp).

The parser catches these special codes and either prints help text or exits cleanly with code 0, without treating them as real errors.

Definition at line 1971 of file action.hh.

Member Typedef Documentation

◆ after_type

template<class Prev>
using cli::action::ExitSuccess::after_type = Prev

Definition at line 1976 of file action.hh.

◆ storage_type

template<class Prev>
using cli::action::ExitSuccess::storage_type = std::monostate

Definition at line 1979 of file action.hh.

Member Function Documentation

◆ operator()()

template<class Arg, class T>
auto cli::action::ExitSuccess::operator() ( ActionCtx< Arg > ctx,
ActionResult< T > input ) const -> ActionResult< T >
inline

Definition at line 1982 of file action.hh.

Member Data Documentation

◆ accepts_input

template<class Prev>
bool cli::action::ExitSuccess::accepts_input = true
staticconstexpr

Definition at line 1973 of file action.hh.


The documentation for this struct was generated from the following file: