[Mono-list] Command Line Parsing

Francisco T. Martinez martinf at mfconsulting.com
Tue Nov 8 12:33:14 EST 2005


Abe Gillespie wrote:
>1.  Is there a utility class out there that helps parse command line
>arguments in a standard way?
>2.  I think I ran into a bug playing around with the command line. 
>When I send an asterisk "*" as one of the arguments I get some weird
>stuff.  On Windows it seems to work ok.  Try the following with an
>asterisk as one of the args:
>
>using System;
>class Program
>{
>    static void Main(string[] args)
>    {
>        foreach (string s in args)
>            Console.WriteLine(s);
>    }
>}
>
>Thanks.
>-Abe
>  
I have been using Mono.GetOptions from some time, and I think is very
easy to use and quite flexible.  Some other Mono Tools and projects use
it as well.  (Thank you Rafael Teixeira)

Hope this help.

Paco


More information about the Mono-list mailing list