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" />
paket add GetOptNet --version 4.0.8
#r "nuget: GetOptNet, 4.0.8"
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
Dependencies
-
.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.
Used By
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.
|