[Mono-dev] Cross-platform command-lines

Rafael Teixeira monoman at gmail.com
Tue Jul 31 10:57:52 EDT 2007

Did you look at how Mono.GetOptions adapts to each platform, if
desired. Just to give you food for thought.

Personally I like, what I've implemented on it: the simple usage of
accepting either "/" or "-" as the prefix, generally having
long/descriptive option names, with selected shortcuts for a small
number of them, accepting parameter values either after a "=" or ":"
or space (but documenting just one preferred choice to make things
easier to grasp and to keep consistent between users for when they
share their knowledge/scripts).

Yeah, I think it ended as a shameless plug, but take from it what
serves you better.

Thank you very much for nunit.


On 7/29/07, Charlie Poole <charlie at pooleconsulting.com> wrote:
> Hi All,
> I'm looking for ideas on best practices for command-line parameters intended
> to be used on both Windows and Linux. Mostly, I want guidelines for how to
> design syntax that makes sense on both platforms, but if anyone has
> implemented something I'd be interested in that as well.
> Charlie
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

Rafael "Monoman" Teixeira
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs

More information about the Mono-devel-list mailing list