|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Stores the input value and rejects subsequent occurrences. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = void |
| template<class Prev> | |
| using | storage_type = detail::decay_t<Prev> |
Public Member Functions | |
| template<class T> | |
| auto | operator() (ActionCtx< detail::decay_t< T > > ctx, ActionResult< T > input) const -> ActionResult< void > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input |
Stores the input value and rejects subsequent occurrences.
Storage type: T. Returns ErrorCode::duplicate_argument if the option appears more than once. This is the default terminal action for Option<T, ...>.
| using cli::pack::SetOnce::after_type = void |
| using cli::pack::SetOnce::storage_type = detail::decay_t<Prev> |
|
inline |
|
staticconstexpr |