On Thu, 2007-01-04 at 11:02 +0000, Chris Seaton wrote:
> Is there a library for parsing command lines in C#? Or do any C#
> applications have a reusable class for parsing command lines. I'm
> looking for something where you specify flags and default values and
> things and gets values from the command line. Like gopt or something.
Mono.GetOptions, available since before Mono 1.0:
http://www.go-mono.com/docs/[EMAIL PROTECTED]:Mono.GetOptions
Many mono utilities use it, such as monodocer:
http://mono.myrealbox.com/source/trunk/monodoc/tools/monodocer.cs
Search for "class Opts" and "opts.ProcessArgs(args)" for example usage.
- Jon
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list