From 2494e1208bb1a61c841c481da5f4d0aa7f7d30f1 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 1 May 2015 14:25:45 +0200 Subject: [PATCH] Add --version to rec_control --- pdns/rec_control.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 "<