CommandLineParser icon indicating copy to clipboard operation
CommandLineParser copied to clipboard

DefaultValue & Description for EnumeratedValueArgument?

Open winkmichael opened this issue 4 years ago • 0 comments

Hello. Is there a way to have a DefaultValue for a EnumeratedValueArgument? If nothing is set I want it to use "verify", also is there a reason there is no way to add a Description / FullDescription for EnumeratedValueArgument?

Thanks for the time, help and cool project!

[EnumeratedValueArgument(typeof(string), 'a', "action", 
            AllowedValues = "activate;deactivate;verify;"),
            DefaultValue = "verify",
            Description = "Deactivate.",
            FullDescription = "Deactivates System.",
            ]
public string action;

./program.exe -action activate

winkmichael avatar Dec 12 '21 16:12 winkmichael