|
kaycxx-cli
C++ CLI library
|
Handle for a registered repeatable option. More...
#include <kaycxx/cli/repeatable_option_handle.hpp>
Public Member Functions | |
| repeatable_option_handle | action () noexcept |
| Marks the option as a mutually exclusive command action. | |
| option< T > const & | definition () const noexcept |
| Returns the underlying option definition. | |
| repeatable_option_handle | default_value (T value) |
| Sets a default option value. | |
Friends | |
| class | command |
Handle for a registered repeatable option.
The handle does not own the option definition. It references data owned by the command that created it.
| T | Option value type. |
|
inlinenoexcept |
Marks the option as a mutually exclusive command action.
|
inline |
Sets a default option value.
When the option is absent, the value is returned as the only element of its result vector.
| value | Default value used when the option is not present in parsed arguments. |
|
inlinenoexcept |
Returns the underlying option definition.