From: William Lallemand Date: Thu, 8 Jan 2026 10:51:40 +0000 (+0100) Subject: BUG/MINOR: cli/stick-tables: argument to "show table" is optional X-Git-Tag: v3.4-dev3~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=623aa725a2b9fd6c6ce3452880441eaabb9b43ae;p=thirdparty%2Fhaproxy.git BUG/MINOR: cli/stick-tables: argument to "show table" is optional 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. --- diff --git a/src/stick_table.c b/src/stick_table.c index 5d0bd6c68..6cc9e177c 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -5990,7 +5990,7 @@ INITCALL0(STG_INIT_2, stkt_late_init); static struct cli_kw_list cli_kws = {{ },{ { { "clear", "table", NULL }, "clear table []* : 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
key [data.* ]* : 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
[]* : 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 [
[]*] : 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 }, {{},} }};