From: Pieter Lexis Date: Mon, 8 Feb 2016 16:06:35 +0000 (+0100) Subject: pdnsutil: provide helpful output with command help X-Git-Tag: auth-4.0.0-alpha2~74^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f413d528f45afc7e379fa526b1afa10ff2fc927;p=pdns pdnsutil: provide helpful output with command help Closes #1965 --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 7a2e25ca7..60ec2acd8 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1809,7 +1809,7 @@ try g_verbose = g_vm.count("verbose"); - if(cmds.empty() || g_vm.count("help")) { + if(cmds.empty() || g_vm.count("help") || cmds[0] == "help") { cerr<<"Usage: \npdnsutil [options] [params ..]\n"<