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

Re: [GSoC][PATCH v6] parse-options: do not show usage upon invalid option value

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 20, 2018, 18:36 UTC
Message-ID
<CAPig+cT8OemuHYbkfX_zpQw47zjupDf65FKC-uC=GP+FLR62og@mail.gmail.com>
In-Reply-To
<20180320175005.18759-1-ungureanupaulsebastian@gmail.com>

On Tue, Mar 20, 2018 at 1:50 PM, Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com> wrote:

Show 10 quoted lines
> Usually, the usage should be shown only if the user does not know what
> options are available. If the user specifies an invalid value, the user
> is already aware of the available options. In this case, there is no
> point in displaying the usage anymore.
>
> This patch applies to "git tag --contains", "git branch --contains",
> "git branch --points-at", "git for-each-ref --contains" and many more.
>
> Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
> ---

As this is a very active mailing list, with reviewers poring over many (sometimes dozens of) patches each day, it is easy for a reviewer to forget exact details of each individual submission and review comment. As a patch contributor, you can help ease reviewers' burden by adding commentary to your submission here, below the "---" line following your sign-off. In particular, reviewers find it very helpful when you:

* describe in some detail what changed since the previous version of
the patch, showing that you understood and took into consideration
each of the review comments from the previous iteration
* a link, like this[1], pointing at the previous round (and perhaps
further back) so reviewers can refresh their memories about issues
raised previously; this also helps people wanting to review this round
who were not involved in earlier rounds
[1]: https://public-inbox.org/git/20180319185436.14309-1-ungureanupaulsebastian@gmail.com/
Previous: Paul-Sebastian UngureanuNext: Paul-Sebastian Ungureanu
Message 2 of 4 in “parse-options: do not show usage upon invalid option value”
  1. Paul-Sebastian UngureanuMar 20, 2018
  2. Eric SunshineMar 20, 2018
  3. Paul-Sebastian UngureanuMar 22, 2018
  4. Junio C HamanoMar 21, 2018

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.