Niche.CommandLineProcessor 3.1.4

.NET Standard 1.6 .NET Framework 4.5
Install-Package Niche.CommandLineProcessor -Version 3.1.4
dotnet add package Niche.CommandLineProcessor --version 3.1.4
<PackageReference Include="Niche.CommandLineProcessor" Version="3.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Niche.CommandLineProcessor --version 3.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Niche.CommandLineProcessor, 3.1.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Niche.CommandLineProcessor as a Cake Addin
#addin nuget:?package=Niche.CommandLineProcessor&version=3.1.4

// Install Niche.CommandLineProcessor as a Cake Tool
#tool nuget:?package=Niche.CommandLineProcessor&version=3.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Niche.CommandLine

Build status

A simple convention based argument handler to make it easy for .NET developers to write console applications.

Conventions

Commandline options are declared by writing methods that comply with the appropriate convention (see below for examples).

Each option has a short form starting with a single dash - (e.g.: -f, -h or -rs) and a long form starting with a double dash -- (e.g.: --find, --help or --report-status). These names are derived from the names of the implementing methods (e.g.: Find(), Help() or ReportStatus()).

Switches

To define a switch, declare a method with no return and no parameters. Give it a [Description] attribute to document what the switch does.

For example, this method:

[Description("Show help listing all available options")]
public void Help();

will give the options -h and --help.

Parameters

To define a parameter, declare a method with no return and one parameter. Again, give it a [Description] attribute to document what the option does.

For example, this method:

[Description("Find files that match a wildcard")]
public void Find(string wildcard);

will give the options -f <wildcard> and --find <wildcard>.

Modes

To define a whole new mode, declare a method returning a new driver instance that has no parameters. Again, you "opt-in" by giving it a [Description] attribute to document what the mode does.

For example, this method:

[Description("Compare the results of two compilers between systems")]
public CompilerDriver TestCompiler();

declares a mode test-compiler.

See Mode Support for more information.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.4 1,058 1/20/2018
3.1.3 795 1/11/2018
3.1.2 837 12/10/2017
3.1.1 836 12/9/2017
3.1.0 879 12/9/2017
3.0.4 862 11/23/2017
2.0.52 783 7/9/2017
2.0.46 1,139 10/11/2016
2.0.45 1,309 9/20/2016
2.0.44 1,368 9/20/2016
2.0.34 1,365 4/21/2015
2.0.33 1,148 1/27/2015
2.0.31 1,164 1/22/2015
2.0.30 1,117 1/3/2015
2.0.29 1,406 12/16/2014
2.0.28 1,367 12/16/2014
2.0.27 1,372 12/16/2014
2.0.26 1,370 11/23/2014
2.0.25 1,366 11/23/2014
2.0.24 1,410 11/23/2014
2.0.23 1,445 11/23/2014
1.0.22 1,221 8/24/2014
1.0.21 1,203 8/22/2014
1.0.20 1,183 8/10/2014
1.0.19 1,161 8/9/2014
1.0.17 1,177 8/7/2014
1.0.16 1,164 8/5/2014