Skip to content

Commit 518e15d

Browse files
rscharfegitster
authored andcommitted
parse-options: document bracketing of argh
Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e9d7761 commit 518e15d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

parse-options.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
8585
* token to explain the kind of argument this option wants. Does not
8686
* begin in capital letter, and does not end with a full stop.
8787
* Should be wrapped by N_() for translation.
88+
* Is automatically enclosed in brackets when printed, unless it
89+
* contains any of the following characters: ()<>[]|
90+
* E.g. "name" is shown as "<name>" to indicate that a name value
91+
* needs to be supplied, not the literal string "name", but
92+
* "<start>,<end>" and "(this|that)" are printed verbatim.
8893
*
8994
* `help`::
9095
* the short help associated to what the option does.

0 commit comments

Comments
 (0)