diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-04 20:52:31 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-04 20:52:31 +0300 |
commit | f9712d75e6389866efbe6ad918dc9773a8a880ad (patch) | |
tree | 7ac7b2ac560e3be83b5131207c47adcd11c17a7b /t/helper | |
parent | 23b20fff3ab28b31678d23e67de328ac24801f18 (diff) | |
parent | c512643e67d33673933fa3d245be28b08b974755 (diff) |
Merge branch 'jc/parse-options-short-help'
Command line parser fix, and a small parse-options API update.
* jc/parse-options-short-help:
short help: allow a gap smaller than USAGE_GAP
remote: simplify "remote add --tags" help text
short help: allow multi-line opthelp
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-parse-options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper/test-parse-options.c b/t/helper/test-parse-options.c index 00fa281a9c..a4f6e24b0c 100644 --- a/t/helper/test-parse-options.c +++ b/t/helper/test-parse-options.c @@ -133,6 +133,8 @@ int cmd__parse_options(int argc, const char **argv) OPT_STRING(0, "st", &string, "st", "get another string (pervert ordering)"), OPT_STRING('o', NULL, &string, "str", "get another string"), OPT_NOOP_NOARG(0, "obsolete"), + OPT_SET_INT_F(0, "longhelp", &integer, "help text of this entry\n" + "spans multiple lines", 0, PARSE_OPT_NONEG), OPT_STRING_LIST(0, "list", &list, "str", "add str to list"), OPT_GROUP("Magic arguments"), OPT_NUMBER_CALLBACK(&integer, "set integer to NUM", |