From 0670347da3266fd876f08846cb32bc71066021ba Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 29 Apr 2016 17:04:23 +0200 Subject: [PATCH] Add --version to dnsscope --- pdns/dnsscope.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index 3bc84e325..52dfdfaaf 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -257,6 +257,7 @@ try po::options_description desc("Allowed options"), hidden, alloptions; desc.add_options() ("help,h", "produce help message") + ("version", "print version number") ("rd", po::value(), "If set to true, only process RD packets, to false only non-RD, unset: both") ("ipv4", po::value()->default_value(true), "Process IPv4 packets") ("ipv6", po::value()->default_value(true), "Process IPv6 packets") @@ -279,10 +280,16 @@ try vector files; if(g_vm.count("files")) files = g_vm["files"].as >(); + + if(g_vm.count("version")) { + cerr<<"dnsscope "<