From: Miod Vallat Date: Mon, 21 Jul 2025 12:56:11 +0000 (+0200) Subject: If quiet, do not print the command header for backend-cmd if there is only one. X-Git-Tag: rec-5.4.0-alpha1~323^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=921105a154c044040497eb6fc1ffbc30be02c0e7;p=thirdparty%2Fpdns.git If quiet, do not print the command header for backend-cmd if there is only one. Signed-off-by: Miod Vallat --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 74efa6a788..a858a3fdbf 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -5285,7 +5285,9 @@ static int backendCmd(vector& cmds, const std::string_view synopsis) } for (auto i = next(begin(cmds), 1); i != end(cmds); ++i) { - cerr << "== " << *i << endl; + if (cmds.size() != 2 && !g_quiet) { + cerr << "== " << *i << endl; + } cout << matchingBackend->directBackendCmd(*i); }