|
kaycxx-cli
C++ CLI library
|
Handle for a registered positional parameter list. More...
#include <kaycxx/cli/parameters_handle.hpp>
Public Member Functions | |
| parameters< T > const & | definition () const noexcept |
| Returns the underlying parameter list definition. | |
| parameters_handle | min (std::size_t count) noexcept |
| Sets the minimum number of values accepted by the parameter list. | |
| parameters_handle | max (std::size_t count) noexcept |
| Sets the maximum number of values accepted by the parameter list. | |
| parameters_handle | default_values (std::vector< T > values) |
| Sets default values for the parameter list. | |
| parameters_handle | default_values (std::initializer_list< T > values) |
| Sets default values for the parameter list. | |
Friends | |
| class | command |
Handle for a registered positional parameter list.
The handle does not own the parameter definition. It references data owned by the command that created it.
| T | Parameter value type. |
|
inline |
Sets default values for the parameter list.
The value count is checked against the configured minimum and maximum when positional parameters are validated.
| values | Default values used when the parameter list is not present in parsed arguments. |
|
inline |
Sets default values for the parameter list.
The value count is checked against the configured minimum and maximum when positional parameters are validated.
| values | Default values used when the parameter list is not present in parsed arguments. |
|
inlinenoexcept |
Returns the underlying parameter list definition.
|
inlinenoexcept |
Sets the maximum number of values accepted by the parameter list.
| count | Maximum number of values. |
|
inlinenoexcept |
Sets the minimum number of values accepted by the parameter list.
| count | Minimum number of values. |