Skip to content
Advanced GetOpt (command line parser) implementation for .Net in C#
C#
Latest commit def62c8 Mar 3, 2016 @nmaier Merge pull request #2 from zippy1981/GetOpt-parameters-nullcheck
Don't attempt to assign to a null GetOpt.parameters
Failed to load latest commit information.
Attributes
Exceptional
Handlers
Properties
TestApp Code cleanup Mar 10, 2013
.gitignore
GetOpt.cs Code cleanup Mar 10, 2013
GetOptException.cs
GetOptNet.csproj Code cleanup Mar 10, 2013
GetOptNet.nuspec
GetOptNet.sln
GetOpt_Initialize.cs
GetOpt_Update.cs
GetOpt_Usage.cs
LICENSE
OptInfo.cs
README.textile
app.config Code cleanup Mar 10, 2013
getoptnet.ruleset
getoptnet.snk Add strong signing key Aug 14, 2012

README.textile

GetOpt.Net

Advanced GetOpt implementation in C#

Description

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.

Examples

See TestApp.

License

MIT License. See LICENSE file for specifics.

Something went wrong with that request. Please try again.