GetOptNet 4.0.8

Commandline Argument Parser for .Net

Install-Package GetOptNet -Version 4.0.8
dotnet add package GetOptNet --version 4.0.8
<PackageReference Include="GetOptNet" Version="4.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GetOptNet --version 4.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Quickly implement command line arguments handling in .Net applications using annotations and automatic type conversations.

It’s as easy as spicing your class with some fields and properties, adding some GetOptNet annotations and calling .Parse(args). GetOptNet will then inspect the command line, validate and assign values to your fields and properties and be done.

Arguments can be flags (boolean), any primitive type, any constructable type, arrays or List<>s.
They can be marked “required”, and for lists a minimum and maximum number of values a user may give can be specified.

Version 4.0 furthermore adds commands (GetOptCommand) that allow to easily implement (sub-)commands like yourapp dosomething --verbose

Quickly implement command line arguments handling in .Net applications using annotations and automatic type conversations.

It’s as easy as spicing your class with some fields and properties, adding some GetOptNet annotations and calling .Parse(args). GetOptNet will then inspect the command line, validate and assign values to your fields and properties and be done.

Arguments can be flags (boolean), any primitive type, any constructable type, arrays or List<>s.
They can be marked “required”, and for lists a minimum and maximum number of values a user may give can be specified.

Version 4.0 furthermore adds commands (GetOptCommand) that allow to easily implement (sub-)commands like yourapp dosomething --verbose

  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on GetOptNet:

Repository Stars
nmaier/simpleDLNA
A simple, zero-config DLNA media server, that you can just fire up and be done with it.

Version History

Version Downloads Last updated
4.0.8 298 5/3/2020
3.1.4 1,690 3/15/2019
1.2.0 18,943 3/10/2013
1.0.1 961 8/21/2012
1.0.0 743 8/20/2012