GetOptNet 4.0.8

.NET Standard 2.0 .NET Framework 4.0
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.
#r "nuget: GetOptNet, 4.0.8"
#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 GetOptNet as a Cake Addin
#addin nuget:?package=GetOptNet&version=4.0.8

// Install GetOptNet as a Cake Tool
#tool nuget:?package=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

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 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen 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.
  • .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
A simple, zero-config DLNA media server, that you can just fire up and be done with it.
Version Downloads Last updated
4.0.8 2,616 5/3/2020
3.1.4 4,404 3/15/2019
1.2.0 35,334 3/10/2013
1.0.1 1,294 8/21/2012
1.0.0 1,083 8/20/2012