You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Patrik Rådman <pr...@abo.fi> on 2004/07/25 21:22:32 UTC

[PATCH] Add -V as a synonym for --version

Hi all,

Someone mentioned on the user list that they expected svn -V to print the
version. The attached patch makes -V a synonym for --version.

Log message:
-------------
* main.c: Added -V as a synonym for --version.

* cl.h: Removed unnecessary constant svn_cl__version_opt.
-------------

  - Patrik Rådman

Re: [PATCH] Add -V as a synonym for --version

Posted by Travis P <sv...@castle.fastmail.fm>.
On Jul 25, 2004, at 5:17 PM, Greg Hudson wrote:

> I poked around a bit and couldn't find any precedent for -V meaning
> --version.

python appears to be this way:
    -V     : print the Python version number and exit
I discovered this recently because --version didn't work.

I'm just pointing out an existing precedent, I think --version is the 
much stronger precedent and am glad Subversion uses it.

-Travis


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by Branko Čibej <br...@xbc.nu>.
kfogel@collab.net wrote:

>Ben Reser <be...@reser.org> writes:
>  
>
>>Especially if we're going to eventually promote svn version instead of
>>svn --version.
>>    
>>
>
>Yes, which I also hope we are!
>
>(Any progress on that front?  We're allowed to add new commands after
>all... Is there some reason we decided to wait?)
>  
>
r10430. Sometimes Subversion is also good for clearing the head of other 
mush.

-- Brane


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by Ben Reser <be...@reser.org>.
On Mon, Jul 26, 2004 at 09:41:55AM -0500, kfogel@collab.net wrote:
> Yes, which I also hope we are!
> 
> (Any progress on that front?  We're allowed to add new commands after
> all... Is there some reason we decided to wait?)

I don't think anyone has had time to do it.  I haven't.

-- 
Ben Reser <be...@reser.org>
http://ben.reser.org

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by kf...@collab.net.
Ben Reser <be...@reser.org> writes:
> Especially if we're going to eventually promote svn version instead of
> svn --version.

Yes, which I also hope we are!

(Any progress on that front?  We're allowed to add new commands after
all... Is there some reason we decided to wait?)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Tue, 27 Jul 2004, Max Bowsher wrote:

> Peter N. Lundblad wrote:
> > On Mon, 26 Jul 2004, Ben Reser wrote:
> >
> > Why do we want this?
>
> svn version will take an URL parameter and display the server version
> number.
>
Ah, I see. I assume --version will be kept for compatibility and since it
is very common among other utilities to have a --version option.

Thanks,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Mon, 26 Jul 2004, Ben Reser wrote:

> On Mon, Jul 26, 2004 at 08:29:30AM -0500, kfogel@collab.net wrote:
> > Patrik Rådman <pr...@abo.fi> writes:
> > > Really? Not a single one? I found at least the following programs on my
> > > system where -V means version: (There are more, I stopped looking after
> > > finding these.)
> >
> > I'm familiar with that not-quite-universal convention too... But I
> > agree with Greg and others that we should be sparing of single-letter
> > options.  Let's save -V.
>
> Especially if we're going to eventually promote svn version instead of
> svn --version.
>
Why do we want this?

//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] Add -V as a synonym for --version

Posted by Ben Reser <be...@reser.org>.
On Mon, Jul 26, 2004 at 08:29:30AM -0500, kfogel@collab.net wrote:
> Patrik Rådman <pr...@abo.fi> writes:
> > Really? Not a single one? I found at least the following programs on my
> > system where -V means version: (There are more, I stopped looking after
> > finding these.)
> 
> I'm familiar with that not-quite-universal convention too... But I
> agree with Greg and others that we should be sparing of single-letter
> options.  Let's save -V.

Especially if we're going to eventually promote svn version instead of
svn --version.

-- 
Ben Reser <be...@reser.org>
http://ben.reser.org

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by kf...@collab.net.
Patrik Rådman <pr...@abo.fi> writes:
> Really? Not a single one? I found at least the following programs on my
> system where -V means version: (There are more, I stopped looking after
> finding these.)

I'm familiar with that not-quite-universal convention too... But I
agree with Greg and others that we should be sparing of single-letter
options.  Let's save -V.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: [PATCH] Add -V as a synonym for --version

Posted by Patrik Rådman <pr...@abo.fi>.
Greg Hudson <gh...@MIT.EDU> wrote:
> On Sun, 2004-07-25 at 17:22, Patrik R??dman wrote:
> > Someone mentioned on the user list that they expected svn -V to print the
> > version. The attached patch makes -V a synonym for --version.
> 
> We like to be sparing with single-letter options.
> 
> I poked around a bit and couldn't find any precedent for -V meaning
> --version.

Really? Not a single one? I found at least the following programs on my
system where -V means version: (There are more, I stopped looking after
finding these.)

man
apm
atq
autoconf
bzip2
gzip
rzip
bison
cdparanoia
compress
etags
flex
free
rcs
killall
snntpd
nm
tin
smbd
raid0run

...and someone else already mentioned python.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Add -V as a synonym for --version

Posted by Greg Hudson <gh...@MIT.EDU>.
On Sun, 2004-07-25 at 17:22, Patrik Rådman wrote:
> Someone mentioned on the user list that they expected svn -V to print the
> version. The attached patch makes -V a synonym for --version.

We like to be sparing with single-letter options.

I poked around a bit and couldn't find any precedent for -V meaning
--version.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org