commandlineparser / commandline

The best C# command line parser that brings standardized *nix getopt style, for .NET. Includes F# support
MIT License
4.55k stars 478 forks source link

Treat Options without parameterless constructor as immutable #891

Open Abdallah-Darwish opened 1 year ago

Abdallah-Darwish commented 1 year ago

Hey,

This is my attempt to address issue #890 by checking if the type has a parameterless constructor before using Activator.CreateInstance<T>().

Please let me know if I didn't follow any of the repo guidelines or conventions.