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>

Michael Montalbo committed May 12, 2026 at 18:10 UTC d654777d73061b112c7ed7bad604b72019f5aafa
1 file changed +1
parse-options.h
+1
@@ -117,6 +117,7 @@ typedef int parse_opt_subcommand_fn(int argc, const char **argv,
117 * PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs)
118 * PARSE_OPT_NOARG: says that this option does not take an argument
119 * PARSE_OPT_NONEG: says that this option cannot be negated
120 + * (i.e. rejects "--no-<option>")
121 * PARSE_OPT_HIDDEN: this option is skipped in the default usage, and
122 * shown only in the full usage.
123 * PARSE_OPT_LASTARG_DEFAULT: says that this option will take the default