]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli/stick-tables: argument to "show table" is optional
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 8 Jan 2026 10:51:40 +0000 (11:51 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 8 Jan 2026 10:54:01 +0000 (11:54 +0100)
Discussed in issue #3187, the CLI help is confusing for the "show table"
command as it seems that the argument is mandatory.

This patch adds the arguments between square brackets to remove the
confusion.

src/stick_table.c

index 5d0bd6c680d50069bf9a5b82f89d4c3a813fa4ce..6cc9e177cb5da9983a1cc297d7fffce66e3da0ff 100644 (file)
@@ -5990,7 +5990,7 @@ INITCALL0(STG_INIT_2, stkt_late_init);
 static struct cli_kw_list cli_kws = {{ },{
        { { "clear", "table", NULL }, "clear table <table> [<filter>]*         : remove an entry from a table (filter: data/key)",                           cli_parse_table_req, cli_io_handler_table, cli_release_show_table, (void *)STK_CLI_ACT_CLR },
        { { "set",   "table", NULL }, "set table <table> key <k> [data.* <v>]* : update or create a table entry's data",                                     cli_parse_table_req, cli_io_handler_table, NULL, (void *)STK_CLI_ACT_SET },
-       { { "show",  "table", NULL }, "show table <table> [<filter>]*          : report table usage stats or dump this table's contents (filter: data/key)", cli_parse_table_req, cli_io_handler_table, cli_release_show_table, (void *)STK_CLI_ACT_SHOW },
+       { { "show",  "table", NULL }, "show table [<table> [<filter>]*]        : report table usage stats or dump this table's contents (filter: data/key)", cli_parse_table_req, cli_io_handler_table, cli_release_show_table, (void *)STK_CLI_ACT_SHOW },
        {{},}
 }};