]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: accept trace spec right after "-dt" on the command line
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Sep 2025 07:30:07 +0000 (09:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Sep 2025 07:33:28 +0000 (09:33 +0200)
commit670dc299d343f953425e325469dbdb352846e92f
tree8b3404b58d66d5298c7ef793b410efc7ae2427fb
parentabfd6f3b93db72f65015cb3278fe5182bf174493
MINOR: trace: accept trace spec right after "-dt" on the command line

I continue to mistakenly set the traces using "-dtXXX" and to have to
refer to the doc to figure that it requires a separate argument and
differs from some other options. Worse, "-dthelp" doesn't say anything
and silently ignores the argument.

Let's make the parser take whatever follows "-dt" as the argument if
present, otherwise take the next one (as it currently does). Doing
this even allows to simplify the code, and is easier to figure the
syntax since "-dthelp" now works.
src/haproxy.c
src/trace.c