I have a System.CommandLine option like this (LogLevel is an enum):
private static readonly Option<LogLevel> option = new(new[] { "--logLevel" })
{
Description = "The severity (log level)."
};
The automatically generated help lists all the enum values as valid values for "--logLevel":
<Debug|Detailed|Error|Fatal|Info|Off|Silent|Warning>
But is it somehow possible to disallow some of them with System.CommandLine or even map strings on enum values (e.g. "W" is mapped to the enum value Warning)?