[Mono-devel-list] Basic compiler and command line options.

Rafael Teixeira monoman at gmail.com
Sun Aug 8 15:47:34 EDT 2004


Hi Miguel,

Mono.GetOptions, currently accepts all 3 forms for a the long form of an option:

/nowarn
-nowarn
--nowarn

are all accepted.

Also the option value can be separated with a colon or an space so that 

-resource:FILE
-resource FILE

are equivalent

As for advertising in the usage/help text, I was thinking most linux
developers would like the familiarity of GNU -- usage, but it just a
matter of tweaking small bits to choose a third display mode (In
Windows Mono.GetOptions shows /nowarn and in Linux it shows --nowarn).

Well, I'm commiting changes to Mono.GetOptions, that will advertise
options with a single-dash unless you mark your Options-derived
subclass ParsingMode member with and additional flag:
OptionsParsingMode.GNU_DoubleDash, just 'or' it with the original
content.

Hope it helps, 

On Sun, 08 Aug 2004 09:07:09 -0400, Miguel de Icaza <miguel at novell.com> wrote:
> Hello,
> 
>    Today mbas uses Mono.GetOptions to parse its options, but I would not
> like to advertise the use of --options in general, since those will not
> work across if you try to use them on the Microsoft compiler.
> 
>    I would like to encourage the usage to be compatible, so something
> like this:
> 
>         -nowarn
>         -resource:FILE
> 
>    Instead of:
> 
>         --nowarn
>         --resource:FILE
> 
> Miguel.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing 
   Humberto Maturana and Francisco Varella's "Santiago Theory of Cognition"



More information about the Mono-devel-list mailing list