ClikaRT::cli::Flag
class
Header: ClikaRT/cli/arg.h
A boolean switch (carries no value). count() on the parsed Args supports -vvv. Non-owning handle, valid while the owning App lives.
Member functions
help()
Flag& help(std::string_view text)
The help line shown for this flag; chainable.
Declared in ClikaRT/cli/arg.h, line 127
hidden()
Flag& hidden(bool v = true)
Hide from help/usage (still parsed); chainable.
Declared in ClikaRT/cli/arg.h, line 129
alias()
Flag& alias(std::string_view name)
An additional accepted spelling; chainable.
Declared in ClikaRT/cli/arg.h, line 131
conflicts_with()
Flag& conflicts_with(std::string_view other)
Mutual exclusion with other; both present is a usage error.
Declared in ClikaRT/cli/arg.h, line 133
needs()
Flag& needs(std::string_view other)
Require other whenever this flag is present.
Declared in ClikaRT/cli/arg.h, line 135