From: Pieter Lexis Date: Fri, 1 May 2015 12:25:45 +0000 (+0200) Subject: Add --version to rec_control X-Git-Tag: rec-4.0.0-alpha3~19^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2494e1208bb1a61c841c481da5f4d0aa7f7d30f1;p=pdns Add --version to rec_control --- diff --git a/pdns/rec_control.cc b/pdns/rec_control.cc index 207c364ae..b87a34cd2 100644 --- a/pdns/rec_control.cc +++ b/pdns/rec_control.cc @@ -50,6 +50,7 @@ static void initArguments(int argc, char** argv) arg().set("timeout", "Number of seconds to wait for the recursor to respond")="5"; arg().set("config-name","Name of this virtual configuration - will rename the binary image")=""; arg().setCmd("help","Provide this helpful message"); + arg().setCmd("version","Show the version of this program"); arg().laxParse(argc,argv); if(arg().mustDo("help") || arg().getCommands().empty()) { @@ -59,6 +60,11 @@ static void initArguments(int argc, char** argv) exit(arg().mustDo("help") ? 0 : 99); } + if(arg().mustDo("version")) { + cout<<"rec_control version "<