ConsoleApp.CommandLine 1.2.2

Command line application utility package. Provides API for parsing and binding command line arguments to .NET methods.

There is a newer version of this package available.
See the version list below for details.
Install-Package ConsoleApp.CommandLine -Version 1.2.2
dotnet add package ConsoleApp.CommandLine --version 1.2.2
<PackageReference Include="ConsoleApp.CommandLine" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConsoleApp.CommandLine --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConsoleApp.CommandLine, 1.2.2"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

# 1.2.2
- returned original library name ConsoleApp.CommandLine.dll

# 1.2.1
- embedded TypeConvert dependency

# 1.2.0
- CommandLine.UnhandledException type changed to ExceptionEventHandler
- added custom description attributes as replacement to System.ComponentModel attributes: HelpTextAttribute and HiddenAttribute
- added support of .NET Standard platform

# 1.1.3
- refactored error messages fo parameters binding failure cases.
- added CommandLineException to signal binding failures.
- fixed few array parameter binding bugs

# 1.1.2
- added bare double hyphen to enforce positional parameters
- added bare single hyphen to disable hyphen interpretation in values
- added special treatment for negative numbers
- added CommandLine.DescribeOnBindFailure which controls reaction on method binding failure (true to run CommandLine.Describe(), false to throw exception).
- added enum flags binding subroutine, now "--flag Flag1 Flag2 Flag3" arguments are supported.
- changed method binding order to from most parameters to less (original was chaotic), binding strategy is still - "first match".
- added non-generic Run and Describe methods
- fixed bug with positional parameters binding

# 1.0.0
- initial release

  • .NETCoreApp 2.0

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ConsoleApp.CommandLine:

Package Downloads
CodeContractsRemover
Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.3.5 238 11/11/2020
1.3.4 172 9/29/2020
1.3.2 2,973 7/5/2018
1.3.1 503 6/20/2018
1.2.9 523 5/31/2018
1.2.7 485 5/29/2018
1.2.6 495 5/21/2018
1.2.5 659 5/17/2018
1.2.2 2,282 3/9/2018
1.1.2 608 10/18/2017
Show less