From f5c1ce10ec38f44fcfe3198c6b6a7baefacff6a6 Mon Sep 17 00:00:00 2001 From: krion Date: Tue, 20 Mar 2018 21:15:52 +0100 Subject: [PATCH] Add '?' for providing help() output on dnsdist -c --- pdns/dnsdist-console.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 7d9d0209ee..f5a0936257 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -136,7 +136,7 @@ void doClient(ComboAddress server, const std::string& command) if(line=="quit") break; - if(line=="help") + if(line=="help" || line=="?") line="help()"; /* no need to send an empty line to the server */ @@ -196,7 +196,7 @@ void doConsole() if(line=="quit") break; - if(line=="help") + if(line=="help" || line=="?") line="help()"; string response; -- 2.47.2