Skip to content

Commit ef45e4d

Browse files
jrngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6325ca3 commit ef45e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse-options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);
6969
* `flags`::
7070
* mask of parse_opt_option_flags.
7171
* 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
7373
* PARSE_OPT_NONEG: says that this option cannot be negated
7474
* PARSE_OPT_HIDDEN: this option is skipped in the default usage, and
7575
* shown only in the full usage.

0 commit comments

Comments
 (0)