|
kaycxx-cli
C++ CLI library
|
Handle for a registered positional parameter. More...
#include <kaycxx/cli/parameter_handle.hpp>
Public Member Functions | |
| parameter< T > const & | definition () const noexcept |
| Returns the underlying parameter definition. | |
| parameter_handle | default_value (T value) |
| Sets the default parameter value. | |
Friends | |
| class | command |
Handle for a registered positional parameter.
The handle does not own the parameter definition. It references data owned by the command that created it.
| T | Parameter value type. |
|
inline |
Sets the default parameter value.
| value | Default value used when the positional parameter is not present in parsed arguments. |
|
inlinenoexcept |
Returns the underlying parameter definition.