Issue47

Title retire --version global option
Priority wish Status resolved
Superseder Nosy List ThomasAH, tksoh
Assigned To Topics

Created on 2005-10-29.06:36:21 by tksoh, last changed 2005-11-03.05:10:53 by mpm.

Messages
msg115 (view) Author: mpm Date: 2005-11-03.05:10:53
--version is standard, so it stays.

version is preferred, as it's actually a command, so it stays too.
msg105 (view) Author: ThomasAH Date: 2005-10-31.08:52:54
'hg --version' definitely has to stay, just like 'hg --help'. Removing 'hg
version' from 'hg (help|--help)' might be an option, but I think this should
only be done if other commands should be hidden from normal help, e.g. because
they've been replaced by options to other commands.

Anand Kumria mentioned on the list that something like "hg log --version" should
be disallowed, but other tools (just try 'ls -la --version /foo') behave the
same and I consider this a good thing.
msg93 (view) Author: Vincent.Danjean Date: 2005-10-29.08:07:18
It is very common practice to use 'prog --version' to look at the
version of a program. Mercurial can do it with 'hg version' but it
is less standard. I would prefer that the '--version' option remains.

   Vincent
msg91 (view) Author: tksoh Date: 2005-10-29.06:36:20
there's already a 'version' command.
History
Date User Action Args
2005-11-03 05:10:53mpmsetstatus: chatting -> resolved
messages: + msg115
2005-10-31 08:52:55ThomasAHsetnosy: + ThomasAH
messages: + msg105
2005-10-29 08:07:18Vincent.Danjeansetstatus: unread -> chatting
messages: + msg93
2005-10-29 06:36:21tksohcreate