MINOR: cli: make "help" support a command in argument
authorWilly Tarreau <w@1wt.eu>
Sun, 9 May 2021 18:59:23 +0000 (20:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 May 2021 18:59:23 +0000 (20:59 +0200)
commit0b1b830e880f7676f77ed8a2a10e79bf40b9f45a
tree32f0466d0c9a530e560942b080a4fbb586132a21
parente1465c1e466d1fe1111731a8444d2ede6ceb0923
MINOR: cli: make "help" support a command in argument

With ~100 commands on the CLI, it's particularly difficult to find a
specific one in the "help" output. The function used to display the
help already supports filtering on certain commands, so in the end it's
just needed to pass the argument of the help command to enable the
automatic filtering. That's what this patch does so that "help clear"
only lists commands starting with "clear" and that "help map" lists
commands containing "map" in them.
doc/management.txt
src/cli.c