]> git.ipfire.org Git - thirdparty/bird.git/commit
cli/commands: Help for multiple word command did not show properly.
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 15 Apr 2025 15:22:33 +0000 (17:22 +0200)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Thu, 17 Apr 2025 14:04:50 +0000 (16:04 +0200)
commit457c10267054b999b188164dbf6bc5975838dd31
tree705ced04d9336dc1e1a5b7be79bfbcf182a00be6
parent64690b7f91f4b9cf51337aa47483d09e34f78c57
cli/commands: Help for multiple word command did not show properly.

Possible commands are stored as keywords, each keyword has its own structure.
The last acceptable keyword structure contains string with hint. But when the hint was printed only direct child
of the base keyword was considered. If it was multi keyword command, the first child did not carry any hint to print,
so it was ignored.

Now, if we don't find a hint in a child, we recursively search in grandchildren.
client/commands.c