From 623aa725a2b9fd6c6ce3452880441eaabb9b43ae Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 8 Jan 2026 11:51:40 +0100 Subject: [PATCH] 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. --- src/stick_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, {{},} }};