Re: [RFC] short help: allow a gap smaller than USAGE_GAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On 19.07.23 00:58, Junio C Hamano wrote:

[...]
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",

I think this chunk should be part of the previous commit.

Beat




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux