[Mono-dev] Cross-platform command-lines
charlie at nunit.com
Mon Aug 6 13:57:20 EDT 2007
> > I haven't but I'll take a look. Do you use the double-dash
> > as well? I wonder if that's something windows users can get
> > to?
> It seems that the majority of the flags on Windows take the
> form /word but they tend to accept -word.
That's true for most user-facing apps anyway. Commands like
xcopy take cumulative flags, but not everyone is comfortable
> In Unix historically options after a single dash are single
> letters, and
> they are cumulative. For instance "ls -lt" does not mean the option
> "lt", it means "l" and "t". For word options, people
> adopted a --word
> In Mono, when we had to be compatible with a command on
> Windows we kept the /word, -word convention as opposed to the
> Unix convention (less work
> on changing Makefiles or existing scripts). In a few cases we still
> recognize the Unix options.
> You will have to adopt a naming scheme (-word or -letters)
> and go with it.
Thanks - I'll think about a consistent scheme and look at getOptions.
My little utility for extracting test results from an nunit xml file
will be the test bed for this.
More information about the Mono-devel-list