]> git.ipfire.org Git - thirdparty/git.git/commitdiff
parse-options: document bracketing of argh
authorRené Scharfe <l.s.r@web.de>
Thu, 20 Jan 2022 10:30:15 +0000 (11:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jan 2022 18:03:29 +0000 (10:03 -0800)
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.h

index 275fb440818d539e91e44a9f5824dd5edcf65420..eebab6c7d71f55654c262ee4ab10f99fe2a9b906 100644 (file)
@@ -85,6 +85,11 @@ typedef enum parse_opt_result parse_opt_ll_cb(struct parse_opt_ctx_t *ctx,
  *   token to explain the kind of argument this option wants. Does not
  *   begin in capital letter, and does not end with a full stop.
  *   Should be wrapped by N_() for translation.
+ *   Is automatically enclosed in brackets when printed, unless it
+ *   contains any of the following characters: ()<>[]|
+ *   E.g. "name" is shown as "<name>" to indicate that a name value
+ *   needs to be supplied, not the literal string "name", but
+ *   "<start>,<end>" and "(this|that)" are printed verbatim.
  *
  * `help`::
  *   the short help associated to what the option does.