From: krion Date: Tue, 20 Mar 2018 20:15:52 +0000 (+0100) Subject: Add '?' for providing help() output on dnsdist -c X-Git-Tag: dnsdist-1.3.0~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6375%2Fhead;p=thirdparty%2Fpdns.git Add '?' for providing help() output on dnsdist -c --- 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;