From f3c63e3487d4e25a15de65f667cafc760728b968 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 24 Jan 2018 16:29:05 +0100 Subject: [PATCH] ixfrdist: clean up argument processing --- pdns/ixfrdist.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index a6bcb686f..54046eff4 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -707,15 +707,6 @@ int main(int argc, char** argv) { cout<<"ixfrdist "< 0 || g_vm.count("debug") > 0) { - g_verbose = true; - } - - if (g_vm.count("debug") > 0) { - g_debug = true; - } - } catch (po::error &e) { cerr<<"[ERROR] "< 0 || g_vm.count("debug") > 0) { + g_verbose = true; + } + + if (g_vm.count("debug") > 0) { + g_debug = true; + } + + if (g_vm.count("keep") > 0) { g_keep = g_vm["keep"].as(); } -- 2.40.0