|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Passes the value through unchanged, but returns ErrorCode::duplicate_argument if the option has been seen more than once. More...
#include <action.hh>
Public Types | |
| template<class Prev> | |
| using | after_type = Prev |
| template<class Prev> | |
| using | storage_type = void |
Public Member Functions | |
| template<class T> | |
| auto | operator() (ActionCtx< void > ctx, ActionResult< T > input) const -> ActionResult< T > |
Static Public Attributes | |
| template<class Prev> | |
| static constexpr bool | accepts_input |
Passes the value through unchanged, but returns ErrorCode::duplicate_argument if the option has been seen more than once.
This is a filter action (non-terminal); it must be followed by a terminal pack action.
| using cli::pack::RejectDuplicate::after_type = Prev |
| using cli::pack::RejectDuplicate::storage_type = void |
|
inline |
|
staticconstexpr |