]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: don't stop cli_gen_usage_msg() when kw->usage == NULL
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 15 May 2018 09:50:04 +0000 (11:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 May 2018 13:16:23 +0000 (15:16 +0200)
commit0154edc96f6bef1a78f53c45735805983b7b1828
treee693c56c60ccfa66f740287cce620bf2a4922cd4
parentc55b88ece616afe0b28dc81eb39bad37b5f9c33f
BUG/MINOR: cli: don't stop cli_gen_usage_msg() when kw->usage == NULL

In commit abbf607 ("MEDIUM: cli: Add payload support") some cli keywords
without usage message have been added at the beginning of the keywords
array.

cli_gen_usage_usage_msg() use the kw->usage == NULL to stop generating
the usage message for the current keywords array. With those keywords at
the beginning, the whole array in cli.c was ignored in the usage message
generation.

This patch now checks the keyword itself, allowing a keyword without
usage message anywhere in the array.
src/cli.c