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

Re: [PATCH] parse-options: add per-option flag to stop abbreviation

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Mar 11, 2022, 18:44 UTC
Message-ID
<CAHk-=wjB_MZqG6QN8gcmdQ2Me9GWmr5HJ8TX8cj9fHck8y75XA@mail.gmail.com>
In-Reply-To
<patch-1.1-d2ae423d1ad-20220311T094315Z-avarab@gmail.com>

On Fri, Mar 11, 2022 at 1:45 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 6 quoted lines
>
> So let's tweak this rule to be more narrowly scoped, now we'll allow
> abbreviated options regardless of PARSE_OPT_KEEP_UNKNOWN being set for
> parse_options(), but we'll provide individual options an opt-out. By
> using that opt-out for "--output-directory" we can have that case work
> without overzealously disallowing others.

Thanks, this looks much more obvious to me than the odd PARSE_OPT_KEEP_UNKNOWN logic was. And would seem to obviate the need for my hacky short aliases.

                Linus
Previous: Ævar Arnfjörð BjarmasonNext: Linus Torvalds
Message 9 of 11 in “RFC: Using '--no-output-indicator-old' to only show new state”
  1. Linus TorvaldsMar 10, 2022
  2. Junio C HamanoMar 10, 2022
  3. Linus TorvaldsMar 10, 2022
  4. Junio C HamanoMar 10, 2022
  5. Linus TorvaldsMar 10, 2022
  6. Linus TorvaldsMar 11, 2022
  7. Ævar Arnfjörð BjarmasonMar 11, 2022
  8. parse-options: add per-option flag to stop abbreviationÆvar Arnfjörð Bjarmason, Mar 11, 2022
  9. Linus TorvaldsMar 11, 2022
  10. Linus TorvaldsMar 11, 2022
  11. Konstantin RyabitsevMar 11, 2022

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.