[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

subcommand-specific options not considered harmful

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-10-17 17:58:56 CEST

Peter Davis <peter@pdavis.cx> writes:
> mkdir is the most obvious application, but since
> subcommand-specific options are a Bad Thing, well, hopefully I have solved
> that problem :)

I'd like to dispel this myth once and for all:

We didn't decide not to have subcommand-specific options.

What we decided was never to have the same option mean unrelated
things for different subcommands, or mean different things in global
context vs in a particular subcommand context (since we don't have
global vs local options).

The idea is to avoid lossage like CVS's various `-d' options.

It's perfectly okay to have an option that applies only to one
subcommand. By implication, however, you usually don't want to use up
a short option letter on such a rarely-used option, so

   $ svn mkdir --parents

is fine, but

   $ svn mkdir -p

probably is not.

This is not a comment any any specific proposal of Peter Davis's, I'm
just trying set the record straight about subcommands and options.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 18:27:48 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.