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

Re: Re* [PATCH] builtin/*: update usage format

From
Derrick Stolee <stolee@gmail.com>
Date
Jan 6, 2021, 12:03 UTC
Message-ID
<b6c68abd-e6b7-acec-6b1f-f915fe20e2e1@gmail.com>
In-Reply-To
<xmqqwnwqtuj1.fsf@gitster.c.googlers.com>
On 1/6/2021 2:05 AM, Junio C Hamano wrote:
Show 9 quoted lines
> Subject: parse-options: format argh like error messages
> 
> "Keep it homogeneous across the repository" is in general a
> guideline that can be used to converge to a good practice, but
> we can be a bit more prescriptive in this case.  Just like the
> messages we give die(_("...")) are formatted without the final
> full stop and without the initial capitalization, most of the
> argument help text are already formatted that way, and we want
> to encourage that as the house style.

It's tough to "keep it homogeneous" when the repository isn't already in that state. Thanks, ZheNing, for working to improve that situation.

Show 7 quoted lines
>   * `argh`::
> - *   token to explain the kind of argument this option wants. Keep it
> - *   homogeneous across the repository. Should be wrapped by N_() for
> - *   translation.
> + *   token to explain the kind of argument this option wants. Does not
> + *   begin in capital letter, and does not end with a full stop.
> + *   Should be wrapped by N_() for translation.
I think this more-specific language is helpful.

Thanks, -Stolee

Previous: Junio C HamanoNext: 阿德烈 via GitGitGadget
Message 4 of 12 in “builtin/*: update usage format”
  1. builtin/*: update usage format阿德烈 via GitGitGadget, Dec 29, 2020
  2. Felipe ContrerasDec 29, 2020
  3. Re* [PATCH] builtin/*: update usage formatJunio C Hamano, Jan 6, 2021
  4. Derrick StoleeJan 6, 2021
  5. 0/2 builtin/*: update usage format阿德烈 via GitGitGadget, Jan 6, 2021
  6. 2/2 parse-options: format argh like error messagesJunio C Hamano via GitGitGadget, Jan 6, 2021
  7. Derrick StoleeJan 6, 2021
  8. 1/2 builtin/*: update usage formatZheNing Hu via GitGitGadget, Jan 6, 2021
  9. 0/2 builtin/*: update usage format阿德烈 via GitGitGadget, Jan 6, 2021
  10. 1/2 parse-options: format argh like error messagesJunio C Hamano via GitGitGadget, Jan 6, 2021
  11. 2/2 builtin/*: update usage formatZheNing Hu via GitGitGadget, Jan 6, 2021
  12. Junio C HamanoJan 6, 2021

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.