Skip to content

Commit d654777

Browse files
mmontalbogitster
authored andcommitted
parse-options: clarify what "negated" means for PARSE_OPT_NONEG
The documentation says the flag prevents an option from being "negated" without specifying what that means. Add a parenthetical to clarify that it rejects the "--no-<option>" form. Signed-off-by: Michael Montalbo <mmontalbo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4517e4c commit d654777

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

parse-options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ typedef int parse_opt_subcommand_fn(int argc, const char **argv,
117117
* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs)
118118
* PARSE_OPT_NOARG: says that this option does not take an argument
119119
* PARSE_OPT_NONEG: says that this option cannot be negated
120+
* (i.e. rejects "--no-<option>")
120121
* PARSE_OPT_HIDDEN: this option is skipped in the default usage, and
121122
* shown only in the full usage.
122123
* PARSE_OPT_LASTARG_DEFAULT: says that this option will take the default

0 commit comments

Comments
 (0)