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

Re: [RFC PATCH v1 01/13] doc: typeset command-line options in monospace

From
Firmin Martin <firminmartin24@gmail.com>
Date
Apr 10, 2021, 01:12 UTC
Message-ID
<87r1jjgcxf.fsf@Inspiron.i-did-not-set--mail-host-address--so-tickle-me>
In-Reply-To
<8a44cb3d-d1ce-a3dc-82da-69a65d5baac2@gmail.com>
Hi Bagas,
Bagas Sanjaya <bagasdotme@gmail.com> writes:
Show 10 quoted lines
> On 09/04/21 11.02, Firmin Martin wrote:
>>   help.browser, web.browser and browser.<tool>.path
>>   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   
>>   The `help.browser`, `web.browser` and `browser.<tool>.path` will also
>>   be checked if the 'web' format is chosen (either by command-line
>> -option or configuration variable). See '-w|--web' in the OPTIONS
>> +option or configuration variable). See `-w`|`--web` in the OPTIONS
>
> Why not `-w | --web`?
Good question.
There are multiple justifications:
- The "|" is a meta-character not included in the option name.
- If you run
      grep -Pn "'.*\|.*?'" *.txt
  under the Documentation/ directory, you will notice that we have
  already done something like this, but in italic:
  - In git-rerere.txt's Synopsis: `git rerere` ['clear'|'forget' <pathspec>|'diff'|'remaining'|'status'|'gc']
  - In gitremote-helpers.txt: 'option dry-run' {'true'|'false'}:
- That is exactly what "man man" or some other man pages do (e.g. "man
  tar"). Of course, some man pages do not follow this convention
  (e.g. "man 7z").
           
Best,
Firmin
                                                                 
>
> -- 
> An old man doll... just what I always wanted! - Clara
Previous: Bagas SanjayaNext: Firmin Martin
Message 4 of 20 in “[GSoC] doc: (monospace) apply CodingGuidelines on a large-scale”
  1. 00/13 [GSoC] doc: (monospace) apply CodingGuidelines on a large-scaleFirmin Martin, Apr 9, 2021
  2. 01/13 doc: typeset command-line options in monospaceFirmin Martin, Apr 9, 2021
  3. Bagas SanjayaApr 9, 2021
  4. Firmin MartinApr 10, 2021
  5. 03/13 doc: typeset configuration options in monospaceFirmin Martin, Apr 9, 2021
  6. 02/13 doc: typeset branches and remotes in monospaceFirmin Martin, Apr 9, 2021
  7. 05/13 doc: typeset git-svn subcommands in monospaceFirmin Martin, Apr 9, 2021
  8. 06/13 doc: typeset dummy URLs and protocols in monospaceFirmin Martin, Apr 9, 2021
  9. 07/13 doc: typeset git dotfiles in monospaceFirmin Martin, Apr 9, 2021
  10. 04/13 doc: typeset git-related commands in monospaceFirmin Martin, Apr 9, 2021
  11. 11/13 doc: typeset config option entries in monospaceFirmin Martin, Apr 9, 2021
  12. 08/13 doc: typeset filepath and $variables in monospaceFirmin Martin, Apr 9, 2021
  13. 10/13 doc: typeset more command entries in monospaceFirmin Martin, Apr 9, 2021
  14. 09/13 doc: typeset command/option/value entries in monospaceFirmin Martin, Apr 9, 2021
  15. 13/13 doc: typeset common programs in monospaceFirmin Martin, Apr 9, 2021
  16. 12/13 doc: typeset environment vars without $ in monospaceFirmin Martin, Apr 9, 2021
  17. Jean-Noël AvilaApr 12, 2021
  18. Firmin MartinApr 13, 2021
  19. Jean-Noël AvilaApr 19, 2021
  20. Jean-Noël AvilaApr 19, 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.