From cf57329d1f4beedd6b664e13241d24236f4c713a Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Sat, 30 Apr 2016 13:32:53 +0200 Subject: [PATCH] Add --version to zone2ldap --- pdns/zone2ldap.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdns/zone2ldap.cc b/pdns/zone2ldap.cc index bf8dccdbe..061a40697 100644 --- a/pdns/zone2ldap.cc +++ b/pdns/zone2ldap.cc @@ -152,6 +152,7 @@ int main( int argc, char* argv[] ) #endif reportAllTypes(); args.setCmd( "help", "Provide a helpful message" ); + args.setCmd( "version", "Print the version" ); args.setSwitch( "verbose", "Verbose comments on operation" ) = "no"; args.setSwitch( "resume", "Continue after errors" ) = "no"; args.setSwitch( "dnsttl", "Add dnsttl attribute to every entry" ) = "no"; @@ -163,6 +164,11 @@ int main( int argc, char* argv[] ) args.parse( argc, argv ); + if(args.mustDo("version")) { + cerr<<"zone2ldap "<