Closed larsbutler closed 9 years ago
I cannot reproduce this with common command line programs. The more free software oriented programs have rather long outputs:
% ls --version
ls (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
% apt-get --version
apt 1.0.5 for amd64 compiled on Jun 18 2014 14:16:53
Supported modules:
*Ver: Standard .deb
*Pkg: Debian dpkg interface (Priority 30)
Pkg: Debian APT solver interface (Priority -1000)
S.L: 'deb' Standard Debian binary tree
S.L: 'deb-src' Standard Debian source tree
Idx: Debian Source Index
Idx: Debian Package Index
Idx: Debian Translation Index
Idx: Debian dpkg status file
Idx: EDSP scenario file
% hg --version
Mercurial Distributed SCM (version 3.0.1)
(see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2014 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Git and Pip both use the short style used by zpm:
% git --version
git version 2.0.0
% pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
The only program I found with a really short version output was virtualenv
:
% virtualenv --version
1.11.6
Hmm, perhaps you're right. Maybe it's just the word version
that I don't like. I think something like zpm 0.2
would suffice.
Where -v also gives version info, I've sometimes seen it give a briefer string than its output for --version. Though I can't think of a specific example at the moment.
From: Martin Geisler notifications@github.com<mailto:notifications@github.com>
Reply-To: zerovm/zpm reply@reply.github.com<mailto:reply@reply.github.com>
Date: Tuesday, July 8, 2014 at 3:08 AM
To: zerovm/zpm zpm@noreply.github.com<mailto:zpm@noreply.github.com>
Subject: Re: [zpm] zpm version
should just show the version number (#148)
I cannot reproduce this with common command line programs. The more free software oriented programs have rather long outputs:
% ls --version ls (GNU coreutils) 8.21 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
% apt-get --version apt 1.0.5 for amd64 compiled on Jun 18 2014 14:16:53 Supported modules: Ver: Standard .deb Pkg: Debian dpkg interface (Priority 30) Pkg: Debian APT solver interface (Priority -1000) S.L: 'deb' Standard Debian binary tree S.L: 'deb-src' Standard Debian source tree Idx: Debian Source Index Idx: Debian Package Index Idx: Debian Translation Index Idx: Debian dpkg status file Idx: EDSP scenario file
% hg --version Mercurial Distributed SCM (version 3.0.1) (see http://mercurial.selenic.com for more information)
Copyright (C) 2005-2014 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Git and Pip both use the short style used by zpm:
% git --version git version 2.0.0
% pip --version pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
The only program I found with a really short version output was virtualenv:
% virtualenv --version 1.11.6
— Reply to this email directly or view it on GitHubhttps://github.com/zerovm/zpm/issues/148#issuecomment-48305689.
Where
-v
also gives version info, I've sometimes seen it give a briefer string than its output for--version
. Though I can't think of a specific example at the moment.
Yeah, I think I've seen that too (but with -V
instead of -v
). I would prefer if all our short and long options did the same, though, since I find that more consistent.
I've changed my mind; the version info is okay as it is.
Virtually every other command line application with a
--version
flag will just display the number, e.g.1.2.15
. Currently,zpm --version
will print the stringzpm version 0.2
; instead, we should just print0.2
.