git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 3, 2011, 22:03 UTC
Message-ID
<7vhb3penqw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20111003182136.GA6136@ecki.lan>
Clemens Buchacher <drizzd@aon.at> writes:
> Hi Junio,
>
> This is a re-send in case you missed it.
Thanks.
Show 26 quoted lines
> Cheers,
> Clemens
>
> --8<--
>
> Signed-off-by: Clemens Buchacher <drizzd@aon.at>
> ---
> ...
> 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.

Previous: Clemens BuchacherNext: Clemens Buchacher
Message 18 of 19 in “What's cooking in git.git (Sep 2011, #06; Wed, 21)”
  1. Junio C HamanoSep 22, 2011
  2. Carlos Martín NietoSep 22, 2011
  3. Michael SchubertSep 22, 2011
  4. Junio C HamanoSep 22, 2011
  5. Jakub NarebskiSep 22, 2011
  6. Junio C HamanoSep 22, 2011
  7. Jakub NarebskiSep 22, 2011
  8. Junio C HamanoSep 22, 2011
  9. fix push --quiet: add 'quiet' capability to receive-packClemens Buchacher, Sep 23, 2011
  10. use -h for synopsis and --help for manpage consistentlyClemens Buchacher, Sep 23, 2011
  11. Scott ChaconSep 23, 2011
  12. Junio C HamanoSep 23, 2011
  13. Junio C HamanoSep 23, 2011
  14. Scott ChaconSep 26, 2011
  15. Junio C HamanoSep 26, 2011
  16. Jay SoffianSep 27, 2011
  17. fix push --quiet: add 'quiet' capability to receive-packClemens Buchacher, Oct 5, 2011
  18. Junio C HamanoOct 3, 2011
  19. Clemens BuchacherOct 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.