[Mono-dev] Cross-platform command-lines

Charlie Poole charlie at nunit.com
Thu Aug 2 08:59:40 EDT 2007


I haven't but I'll take a look. Do you use the double-dash
convention as well? I wonder if that's something windows
users can get accustomed to?

Charlie

> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com 
> [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf 
> Of Rafael Teixeira
> Sent: Tuesday, July 31, 2007 10:58 AM
> To: Charlie Poole
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] Cross-platform command-lines
> 
> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 






More information about the Mono-devel-list mailing list