]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: map/cli: fix some map-related help messages
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 13:11:28 +0000 (15:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Apr 2026 15:39:26 +0000 (17:39 +0200)
Some CLI help messages used to mention "acl" instead of "map", others had
unbalanced brackets. This can be backported if desired.

src/map.c

index 141bd0ceb52e3044f9448e4b9e7c080d01db9d03..dd4f6336106e1cf47ed9f6e7060aaf32247136dc 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -1206,15 +1206,15 @@ static struct cli_kw_list cli_kws = {{ },{
        { { "del",   "acl", NULL }, "del acl <acl> [<key>|#<ref>]            : delete acl entries matching <key>",                      cli_parse_del_map, NULL },
        { { "get",   "acl", NULL }, "get acl <acl> <value>                   : report the patterns matching a sample for an ACL",       cli_parse_get_map, cli_io_handler_map_lookup, cli_release_mlook },
        { { "prepare","acl",NULL }, "prepare acl <acl>                       : prepare a new version for atomic ACL replacement",       cli_parse_prepare_map, NULL },
-       { { "show",  "acl", NULL }, "show acl [@<ver>] <acl>]                : report available acls or dump an acl's contents",        cli_parse_show_map, NULL },
+       { { "show",  "acl", NULL }, "show acl [@<ver>] <acl>                 : report available acls or dump an acl's contents",        cli_parse_show_map, NULL },
        { { "add",   "map", NULL }, "add map [@<ver>] <map> <key> <val>      : add a map entry (payload supported instead of key/val)", cli_parse_add_map, NULL },
        { { "clear", "map", NULL }, "clear map [@<ver>] <map>                : clear the contents of this map",                         cli_parse_clear_map, cli_io_handler_clear_map, NULL },
        { { "commit","map", NULL }, "commit map @<ver> <map>                 : commit the map at this version",                         cli_parse_commit_map, cli_io_handler_clear_map, NULL },
        { { "del",   "map", NULL }, "del map <map> [<key>|#<ref>]            : delete map entries matching <key>",                      cli_parse_del_map, NULL },
-       { { "get",   "map", NULL }, "get map <acl> <value>                   : report the keys and values matching a sample for a map", cli_parse_get_map, cli_io_handler_map_lookup, cli_release_mlook },
-       { { "prepare","map",NULL }, "prepare map <acl>                       : prepare a new version for atomic map replacement",       cli_parse_prepare_map, NULL },
+       { { "get",   "map", NULL }, "get map <map> <value>                   : report the keys and values matching a sample for a map", cli_parse_get_map, cli_io_handler_map_lookup, cli_release_mlook },
+       { { "prepare","map",NULL }, "prepare map <map>                       : prepare a new version for atomic map replacement",       cli_parse_prepare_map, NULL },
        { { "set",   "map", NULL }, "set map <map> [<key>|#<ref>] <value>    : modify a map entry",                                     cli_parse_set_map, NULL },
-       { { "show",  "map", NULL }, "show map [@ver] [map]                   : report available maps or dump a map's contents",         cli_parse_show_map, NULL },
+       { { "show",  "map", NULL }, "show map [@<ver>] [map]                 : report available maps or dump a map's contents",         cli_parse_show_map, NULL },
        { { NULL }, NULL, NULL, NULL }
 }};