Skip to content
Advanced GetOpt (command line parser) implementation for .Net in C#
C#
Branch: master
Clone or download

Latest commit

Latest commit 5b94f13 May 3, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Attributes Commands Apr 14, 2020
Exceptional Commands Apr 14, 2020
Handlers Merge branch 'master' of https://github.com/nmaier/getoptnet May 3, 2020
.editorconfig 3.1.4 Mar 15, 2019
.gitignore 3.1.4 Mar 15, 2019
Extensions.cs 3.1.4 Mar 15, 2019
GetOpt.cs Commands Apr 14, 2020
GetOptException.cs 3.1.4 Mar 15, 2019
GetOptNet.csproj Version 4.0.8 May 3, 2020
GetOptNet.csproj.DotSettings 3.1.4 Mar 15, 2019
GetOptNet.sln 3.1.4 Mar 15, 2019
GetOpt_Commands.cs Commands Apr 14, 2020
GetOpt_Initialize.cs Commands Apr 14, 2020
GetOpt_Update.cs Commands Apr 14, 2020
GetOpt_Usage.cs Commands Apr 14, 2020
LICENSE 3.1.4 Mar 15, 2019
OptInfo.cs Commands Apr 14, 2020
README.textile Add stub README Sep 13, 2010
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.

You can’t perform that action at this time.