Skip to contentSkip to conversation

api-parse-options.adoc: restore a dropped word

PATCH In review Cynthia Uche 2 participants 2 messages Nov 4 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 api-parse-options.adoc: restore a dropped word

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.

---
 Documentation/technical/api-parse-options.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/technical/api-parse-options.adoc +2 -2
index 6dfea34220..14f0d2b572 100644
@@ -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.
 
Signature · 1 line
2.56.GIT
#1 lore raw
Quoted 5 lines · Cynthia Uche

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.

Quoted 22 lines

Restore it, and rewrap the following line.

---
 Documentation/technical/api-parse-options.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/technical/api-parse-options.adoc +2 -2
index 6dfea34220..14f0d2b572 100644
@@ -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.