v2.2.0-beta
Pre-release
Pre-release
·
421 commits
to main
since this release
This release contains a huge refactoring to the way the attribute-binding was implemented. As a part of this, I've made it possible for you to extend and control better the way that a .NET type is bound to CommandLineApplication.
New features:
- Add
CommandOptionType.SingleOrNoValue. Options of this type can be a switch, or have a value but only in the form--param:valueor--param=value. - Support mapping
Tuple<bool,T>andValueTuple<bool,T>toCommandOptionType.SingleOrNoValue - Added
CommandLineApplication<TModel>. This allows associating an application with a specific .NET type - Convention API. Adds support for writing your own conventions to convert command line arguments into a .NET type
- [@sebastienros] - Support for case-insensitive options
- Add support for constructor injection and dependency injection by providing a custom service provider
Build: https://ci.appveyor.com/project/natemcmaster/commandlineutils/build/2.2.0-beta
Release: https://www.nuget.org/packages/McMaster.Extensions.CommandLineUtils/2.2.0-beta