[Mono-dev] Cross-platform command-lines
monoman at gmail.com
Fri Aug 3 09:31:12 EDT 2007
nowadays the user can use single-dash with either short and long
options, what you lose with (still you can configure for the old
behaviour) is option consolidation (many single-letter options
together in a single-dash), like you see in tar for example:
tar -zxf filename
Mono.GetOptions still support this but not with the default
configuration, because of ambiguity: is zxf a single long-named option
or 3 single-letter ones?
On 8/2/07, Charlie Poole <charlie at nunit.com> wrote:
> 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?
> > -----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
Rafael "Monoman" Teixeira
"I myself am made entirely of flaws, stitched together with good intentions."
More information about the Mono-devel-list