Skip to content

Commit a9126b9

Browse files
szedergitster
authored andcommitted
parse-options: clarify the limitations of PARSE_OPT_NODASH
Update the comment documenting 'struct option' to clarify that PARSE_OPT_NODASH can only be an argumentless short option; see 51a9949 (parseopt: add PARSE_OPT_NODASH, 2009-05-07). Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 99d86d6 commit a9126b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parse-options.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
109109
* is last on the command line. If the option is
110110
* not last it will require an argument.
111111
* Should not be used with PARSE_OPT_OPTARG.
112-
* PARSE_OPT_NODASH: this option doesn't start with a dash.
112+
* PARSE_OPT_NODASH: this option doesn't start with a dash; can only be a
113+
* short option and can't accept arguments.
113114
* PARSE_OPT_LITERAL_ARGHELP: says that argh shouldn't be enclosed in brackets
114115
* (i.e. '<argh>') in the help message.
115116
* Useful for options with multiple parameters.

0 commit comments

Comments
 (0)