Injects a compile-time default value when an option is invoked as a flag (no value provided).
More...
template<
StringLiteral Value>
struct cli::conversion::DefaultMissingValue< Value >
Injects a compile-time default value when an option is invoked as a flag (no value provided).
Accepts std::optional<std::string_view> as input:
- If the optional has a value (actual value provided), unwrap and pass through.
- If nullopt (flag-only invocation) and nargs == 0, inject the compile-time default string.
- If nullopt but nargs > 0 (value coming separately), return ignore.
- Template Parameters
-
| Value | The default string value to inject when invoked as a flag. |
Definition at line 998 of file action.hh.