j-maly / CommandLineParser

Command line parser. Declarative arguments support. Rich set of argument types (switches, enums, files, etc...). Mutually exclusive arguments validations.
MIT License
137 stars 30 forks source link

DefaultValue & Description for EnumeratedValueArgument? #75

Open winkmichael opened 2 years ago

winkmichael commented 2 years ago

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