Skip to content

.NET library to parse command line parameters. Includes a demo application.

License

Notifications You must be signed in to change notification settings

rwhitworth/CmdLine

Repository files navigation

CmdLine

.NET library to parse command line parameters. Includes a demo application.

CmdLine v1.1
A command line parsing library for C# / VB.Net

Ryan Whitworth
[email protected] || [email protected]

This software is licensed under the GPL v3. Contact the author for additional licensing options.

Example usage:
c:\nifty-program.exe /a --b -infile=input.dat /outfile="output file.dat"

Add 'using CmdLine;' to the top of the project and add this to the project:

CmdLineParser cmd = new CmdLineParser(Environment.CommandLine);
var results = cmd.commands;
foreach (var item in results)
{
	// do something with item.ToString()
}

See the included test program for more and better example code.

ChangeLog:
08/01/2011 - v1.0 released
08/06/2011 - v1.1 released with fixes to the parsing rules and now using regular expressions and support for "long file names"

About

.NET library to parse command line parameters. Includes a demo application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages