Imaginary Syntax:
class Settings : CommandSettings {
[CommandOption("-v|--verbose")]
[Description("How verbose the logging should be. can be increased with multiple -v options")]
[FlagCount]
public required FlagValue<int> Verbosity { get; set; }
}
This system would allow for capturing the number of times a flag has been provided as the value to the flag itself. so -v would be 1 -v -v or -vv would be 2 and so on. In particular this would allow for easy verbosity configuration via -v for "increase verbosity" command -vv (aka trace) or -q for "decrease verbosity" command -qqq (aka critical).
Imaginary Syntax:
This system would allow for capturing the number of times a flag has been provided as the value to the flag itself. so
-vwould be 1-v -vor-vvwould be 2 and so on. In particular this would allow for easy verbosity configuration via-vfor "increase verbosity"command -vv(aka trace) or-qfor "decrease verbosity"command -qqq(aka critical).