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

Re: [PATCH] send-email: add option -h

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 5, 2011, 20:08 UTC
Message-ID
<7vk49mbvlk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110903170612.GA3536@ecki>
Clemens Buchacher <drizzd@aon.at> writes:
Show 7 quoted lines
> Most other git commands print a synopsis when passed -h. Make
> send-email do the same.
>
> Signed-off-by: Clemens Buchacher <drizzd@aon.at>
> ...
> +my $help;
> +my $rc = GetOptions("help|H|h" => \$help,
I do not think what the patch aims to do is wrong per-se, but
 $ git send-email --help

already shows the full documentation, and I find it is misleading to say "help|H|h" here to pretend as if a long-help is triggered with this command. For that matter, do we have any other place that accept -H for help?

IOW, shouldn't this line be this instead?
> +my $rc = GetOptions("h" => \$help,
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 2 of 4 in “send-email: add option -h”
  1. send-email: add option -hClemens Buchacher, Sep 3, 2011
  2. Junio C HamanoSep 5, 2011
  3. Clemens BuchacherSep 6, 2011
  4. Junio C HamanoSep 6, 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.