Re: [PATCH] use -h for synopsis and --help for manpage consistently

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] use -h for synopsis and --help for manpage consistently

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:10

Clemens Buchacher [off-list ref] writes:
Hi Junio,

This is a re-send in case you missed it.
Thanks.
quoted hunk
Cheers,
Clemens

--8<--

Signed-off-by: Clemens Buchacher <redacted>
---
...
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 1b8bff2..6c5185e 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -109,14 +109,14 @@ my $usage =
     "    --strict-paths      : Don't allow recursing into subdirectories\n".
     "    --export-all        : Don't check for gitcvs.enabled in config\n".
     "    --version, -V       : Print version information and exit\n".
-    "    --help, -h, -H      : Print usage information and exit\n".
+    "    -h                  : Print usage information and exit\n".
     "\n".
     "<directory> ... is a list of allowed directories. If no directories\n".
     "are given, all are allowed. This is an additional restriction, gitcvs\n".
     "access still needs to be enabled by the gitcvs.enabled config option.\n".
     "Alternately, one directory may be specified in GIT_CVSSERVER_ROOT.\n";
 
-my @opts = ( 'help|h|H', 'version|V',
+my @opts = ( 'h', 'version|V',
I am a bit skeptical about the removal of 'H' here (also in git-svn).

Granted, no sane script would have ever used "-H" (or "-h" for that
matter) so there is little chance for this to introduce a painful
regression.

Re: [PATCH] use -h for synopsis and --help for manpage consistently

From: Clemens Buchacher <hidden>
Date: 2016-06-15 22:52:10

On Mon, Oct 03, 2011 at 03:03:51PM -0700, Junio C Hamano wrote:
quoted
 
-my @opts = ( 'help|h|H', 'version|V',
+my @opts = ( 'h', 'version|V',
I am a bit skeptical about the removal of 'H' here (also in git-svn).
I see. I'm ok with your fixup.

Clemens
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help