|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
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 |
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.
| using cli::action::ExitSuccess::after_type = Prev |
| using cli::action::ExitSuccess::storage_type = std::monostate |
|
inline |
|
staticconstexpr |