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

Re: cmd line stuff (was: CVS update: ...)

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-18 22:55:44 CEST

On Wed, Oct 18, 2000 at 12:40:25PM -0700, Bruce Korb wrote:
>...
> That leaves you with a rather interesting dilemma:
>
> svn -x foo bar
>
> Which is the subcommand, "foo" or "bar"?
> Well, it depends. For the "foo" subcommand, -x happens to
> require an argument, but for the "bar" subcommand, it does
> not. Or, was that the other way around? In any event,
> without knowing which is the subcommand, you cannot know
> how to handle the -x flag option. Unless, of course, all
> options apply to all subcommands and the subcommand processing
> code has to figure out what happened. To this, *I* say, "No." :-)
> Way too hard. ``svn'' + ``<subcommand>'' is the command.
> Or, rather, ``<subcommand>'' is the command within the svn's
> command name space, if you like.

Oh, this is an easy one:

1) you cannot specify two subcommands at one time.

2) the -x is not processed until *after* the entire argv is parsed. The
   first thing after parsing is to look for the subcommand.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:11 2006

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.