Skip to content

priestd09/getoptnet

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%