You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When outputting HelpText, the following code will correctly list valid values for enum type options. However, if the option is a nullable enum type, then it will not list the valid values.
parserResult.WithNotParsed(errors =>
{
// Use custom help text to ensure valid enum values are displayed
var helpText = HelpText.AutoBuild(parserResult);
helpText.AddEnumValuesToHelpText = true;
helpText.AddOptions(parserResult);
Console.Error.Write(helpText);
Environment.Exit(1);
});
Is this a bug, or is there another setting/workaround for nullable enums?
The text was updated successfully, but these errors were encountered:
When outputting HelpText, the following code will correctly list valid values for enum type options. However, if the option is a nullable enum type, then it will not list the valid values.
Is this a bug, or is there another setting/workaround for nullable enums?
The text was updated successfully, but these errors were encountered: