Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Advanced GetOpt (command line parser) implementation for .Net in C#

branch: master

Code cleanup

latest commit a83b499d56
Nils Maier authored
Attributes Code cleanup
Exceptional Code cleanup
Handlers Code cleanup
Properties Code cleanup
TestApp Code cleanup
.gitignore Code cleanup
GetOpt.cs Code cleanup
GetOptException.cs Code cleanup
GetOptNet.csproj Code cleanup
GetOptNet.nuspec Code cleanup
GetOptNet.sln Upgrade to MSVC2010
GetOpt_Initialize.cs Code cleanup
GetOpt_Update.cs Code cleanup
GetOpt_Usage.cs Code cleanup
OptInfo.cs Code cleanup
README.textile Add stub README
app.config Code cleanup
getoptnet.ruleset Code cleanup
getoptnet.snk Add strong signing key


Advanced GetOpt implementation in C#


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.


See TestApp.


MIT License. See LICENSE file for specifics.

Something went wrong with that request. Please try again.