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

Re: [RFC] short help: allow a gap smaller than USAGE_GAP

From
Beat Bolli <dev+git@drbeat.li>
Date
Jul 19, 2023, 22:04 UTC
Message-ID
<98b86433-053b-c44e-05a9-b2e3afd4b4f0@drbeat.li>
In-Reply-To
<xmqqlefcesjr.fsf_-_@gitster.g>
Hi
On 19.07.23 00:58, Junio C Hamano wrote:
[...]
Show 13 quoted lines
> diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c
> index 00fa281a9c..a4f6e24b0c 100644
> --- a/t/helper/test-parse-options.c
> +++ b/t/helper/test-parse-options.c
> @@ -133,6 +133,8 @@ int cmd__parse_options(int argc, const char **argv)
>   		OPT_STRING(0, "st", &string, "st", "get another string (pervert ordering)"),
>   		OPT_STRING('o', NULL, &string, "str", "get another string"),
>   		OPT_NOOP_NOARG(0, "obsolete"),
> +		OPT_SET_INT_F(0, "longhelp", &integer, "help text of this entry\n"
> +			      "spans multiple lines", 0, PARSE_OPT_NONEG),
>   		OPT_STRING_LIST(0, "list", &list, "str", "add str to list"),
>   		OPT_GROUP("Magic arguments"),
>   		OPT_NUMBER_CALLBACK(&integer, "set integer to NUM",
I think this chunk should be part of the previous commit.
Beat
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “short help: allow multi-line opthelp”
  1. short help: allow multi-line opthelpJunio C Hamano, Jul 18, 2023
  2. remote: simplify "remote add --tags" help textJunio C Hamano, Jul 18, 2023
  3. short help: allow multi-line opthelpJunio C Hamano, Jul 18, 2023
  4. [RFC] short help: allow a gap smaller than USAGE_GAPJunio C Hamano, Jul 18, 2023
  5. Beat BolliJul 19, 2023
  6. Junio C HamanoJul 19, 2023

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.