[Mono-devel-list] Mono.GetOptions

Marcus mathpup at mylinuxisp.com
Tue Jul 6 22:23:31 EDT 2004

On Tuesday 06 July 2004 11:32 am, A Rafael D Teixeira wrote:

> Just to clarify: I'm the original developer of Mono.GetOptions, and still
> the main one.

Oops. I didn't realize that. For some reason I was thinking that it was 
someone else. No offense was intended.

> >For example, to provide Windows-style syntax, I need to handle
> >"/a:name=value".
> Currently you can use the non-optimal comma-pairing
> /a:name,value
> also accepted in the /a name,value and /a=name,value

> Yes, the idea I have just now is to associate parsing name-value pairs,
> using the syntax you presented, only for types that implement IDictionary,
> so there'd be a natural semantical match.

By the way, the main reason for my wanting that type of syntax is to emulate 
what some Windows applications, such as the forthcoming MSBuild to. I also 
noticed that it's possible to use "/a name=value" (with a space but no 

> I came up with Mono.GetOptions long ago, because I needed it in mbas, and
> since then some people has enjoyed using it inside mono utilities and
> elsewhere. But Miguel told me today, that we need to discuss it better, to
> make it a better tool to more developers.
> I'm addicted to it, just can't do imperative parsing of options anymore,
> but I want it to be as usefull as possible, so ...

Yes, I have found it to be very helpful. I might consider writing some 
documentation for it, if that would be welcome.


More information about the Mono-devel-list mailing list