adamabdelhamed / PowerArgs

The ultimate .NET Standard command line argument parser
MIT License
569 stars 56 forks source link

Add support for a warning on usage of obsolete enum value #145

Open KaiLuettmann opened 5 years ago

KaiLuettmann commented 5 years ago

Please add support for warning on usage of an obsolete enum value. I wrote a workarround (see attachment).

Usage: [ArgShortcut("pr")] [ArgDescription("Sets the state persistence provider to use.")] [ArgObsoleteEnumValueValidator(typeof(StatePersistenceProviderEnum))] public StatePersistenceProviderEnum Provider { get; set; }

KaiLuettmann commented 5 years ago

ArgObsoleteEnumValueValidator.zip