@matheusbsbs / matheus-bagliano / commits / ef45e4dae0
Fork 0

parse-options: clarify PARSE_OPT_NOARG description

Here "takes no argument" means "does not take an argument". The latter phrasing might make it clearer that PARSE_OPT_NOARG does not make an option with an argument that can optionally be left off. Noticed-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Aug 22, 2010 at 21:56 UTC ef45e4dae0a0f45fc72b7cd34b32dd465a38697d
1 file changed +1 -1
parse-options.h
+1 -1
@@ -69,7 +69,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);
69 * `flags`::
70 * mask of parse_opt_option_flags.
71 * PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs)
72 - * PARSE_OPT_NOARG: says that this option takes no argument
72 + * PARSE_OPT_NOARG: says that this option does not take an argument
73 * PARSE_OPT_NONEG: says that this option cannot be negated
74 * PARSE_OPT_HIDDEN: this option is skipped in the default usage, and
75 * shown only in the full usage.