]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: don't complain about empty command on empty lines
authorWilly Tarreau <w@1wt.eu>
Thu, 11 May 2023 14:32:56 +0000 (16:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 May 2023 14:38:52 +0000 (16:38 +0200)
commit21d7125c923376f5d8b708f49093eeedbe596d6f
treef03258f677601d9d0a4c9d1db19546504474ef94
parent31b23aef383aa787ca05464302e07e304621e689
BUG/MINOR: cli: don't complain about empty command on empty lines

There's something very irritating on the CLI, when just pressing ENTER,
it complains "Unknown command: ''..." and dumps all the help. This
action is often done to add a bit of clearance after a dump to visually
find delimitors later, but this stupid error makes it unusable. This
patch addresses this by just returning on empty command instead of trying
to look up a matching keyword. It will result in an empty line to mark
the end of the empty command and a prompt again.

It's probably not worth backporting this given that nobody seems to have
complained about it yet.
src/cli.c