From 2a6faa4f412f909803c5085f3b3a61536e275239 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 29 Apr 2016 16:57:42 +0200 Subject: [PATCH] Add --version to dnsreplay --- pdns/dnsreplay.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pdns/dnsreplay.cc b/pdns/dnsreplay.cc index 1f8a7c7df..f51a0c40f 100644 --- a/pdns/dnsreplay.cc +++ b/pdns/dnsreplay.cc @@ -670,12 +670,18 @@ bool sendPacketFromPR(PcapPacketReader& pr, const ComboAddress& remote, int stam return sent; } +void usage(po::options_description &desc) { + cerr << "Usage: dnsreplay [OPTIONS] FILENAME [IP-ADDRESS] [PORT]"<()->default_value(0), "stop after this many packets") ("quiet", po::value()->default_value(true), "don't be too noisy") ("recursive", po::value()->default_value(true), "look at recursion desired packets, or not (defaults true)") @@ -703,15 +709,18 @@ try reportAllTypes(); if (g_vm.count("help")) { - cerr << "Usage: dnsreplay [--options] filename [ip-address] [port]"<