]> git.kaiwu.me - haproxy.git/commit
MINOR: ring/cli: improve the "show events" parser regarding options
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Sep 2026 14:20:56 +0000 (16:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Sep 2026 14:29:16 +0000 (16:29 +0200)
commitc0d012515a9c41f445324d4444408281e2619c7d
treea5dc87998d760dd0e5e34e05df4df4b480576561
parent98ccfde3f0a5a72954dfedad5d5b519a0de99e58
MINOR: ring/cli: improve the "show events" parser regarding options

The "show events" parser remains counter-intuitive in that the options
are historically placed after the ring name, making it behave differently
from commonly used tools and other CLI commands.

Let's relax the parser to take any -XXX as a set of option and the only
word not starting with - as the sink name. That way it becomes possible
to parse options before or after the sink name. The doc was updated to
reflect this and present available options as an enumeration rather than
an unreadable wall of text.
doc/management.txt
src/sink.c