From: Pieter Lexis Date: Wed, 24 Jan 2018 15:29:05 +0000 (+0100) Subject: ixfrdist: clean up argument processing X-Git-Tag: dnsdist-1.3.0~111^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3c63e3487d4e25a15de65f667cafc760728b968;p=pdns ixfrdist: clean up argument processing --- 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(); }