Thread View: linux.kernel.git
2 messages
2 total messages
Started by Cynthia Uche
Wed, 04 Nov 2026 22:45
[Outreachy PATCH] api-parse-options.adoc: restore a dropped word
Author: Cynthia Uche
Date: Wed, 04 Nov 2026 22:45
Date: Wed, 04 Nov 2026 22:45
31 lines
11662 bytes
11662 bytes
The description of PARSE_OPT_KEEP_UNKNOWN_OPT ends with "..., the parser early.", which is not a sentence. The word "stopping" was lost in 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together, 2009-03-09), which rewrote the end of that sentence. Restore it, and rewrap the following line. Signed-off-by: Cynthia Uche <herroyalpriestess@gmail.com> --- Documentation/technical/api-parse-options.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/technical/api-parse-options.adoc b/Documentation/technical/api-parse-options.adoc index 6dfea34220..14f0d2b572 100644 --- a/Documentation/technical/api-parse-options.adoc +++ b/Documentation/technical/api-parse-options.adoc @@ -127,8 +127,8 @@ Flags are the bitwise-or of: `PARSE_OPT_STOP_AT_NON_OPTION` is set, the second argument in `--unknown value` will be mistakenly interpreted as a non-option, not as a value belonging to the unknown option, - the parser early. That's why parse_options() errors out if - both options are set. + stopping the parser early. That's why parse_options() errors + out if both options are set. Note that non-option arguments are always kept, even without this flag. -- 2.56.GIT
Re: [Outreachy PATCH] api-parse-options.adoc: restore a dropped word
Author: Junio C Hamano
Date: Wed, 04 Nov 2026 23:13
Date: Wed, 04 Nov 2026 23:13
33 lines
13988 bytes
13988 bytes
Cynthia Uche <herroyalpriestess@gmail.com> writes: > The description of PARSE_OPT_KEEP_UNKNOWN_OPT ends with "..., the > parser early.", which is not a sentence. The word "stopping" was lost > in 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION > from being used together, 2009-03-09), which rewrote the end of that > sentence. Makes sense. Thanks for finding and fixing. > > Restore it, and rewrap the following line. > > Signed-off-by: Cynthia Uche <herroyalpriestess@gmail.com> > --- > Documentation/technical/api-parse-options.adoc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/technical/api-parse-options.adoc b/Documentation/technical/api-parse-options.adoc > index 6dfea34220..14f0d2b572 100644 > --- a/Documentation/technical/api-parse-options.adoc > +++ b/Documentation/technical/api-parse-options.adoc > @@ -127,8 +127,8 @@ Flags are the bitwise-or of: > `PARSE_OPT_STOP_AT_NON_OPTION` is set, the second argument in > `--unknown value` will be mistakenly interpreted as a > non-option, not as a value belonging to the unknown option, > - the parser early. That's why parse_options() errors out if > - both options are set. > + stopping the parser early. That's why parse_options() errors > + out if both options are set. > Note that non-option arguments are always kept, even without > this flag.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads