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