|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Wraps the current value in a HelpRequested<T> sentinel type. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = detail::HelpRequested<Prev> |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| template<class Arg, class T> | |
| auto | operator() (ActionCtx< Arg >, ActionResult< T > input) const -> ActionResult< after_type< T > > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input = true |
Wraps the current value in a HelpRequested<T> sentinel type.
When ExitSuccess follows this action, it detects the HelpRequested wrapper and emits ErrorCode::help_requested (which instructs the parser to print help and exit 0).
| using cli::action::PrintHelp::after_type = detail::HelpRequested<Prev> |
| using cli::action::PrintHelp::storage_type = void |
|
inline |
|
staticconstexpr |