From e4025464b092b1c09705d5c7b6f616ed08d6babb Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 29 Aug 2013 18:05:06 -0400 Subject: [PATCH] must initialize cmdline_parser before we read args --- src/zmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zmap.c b/src/zmap.c index 598c9d1..04d5191 100644 --- a/src/zmap.c +++ b/src/zmap.c @@ -341,13 +341,14 @@ int main(int argc, char *argv[]) params->override = 0; params->check_required = 0; + if (cmdline_parser_ext(argc, argv, &args, params) != 0) { + exit(EXIT_SUCCESS); + } + zconf.log_level = args.verbosity_arg; log_init(stderr, zconf.log_level); log_trace("zmap", "zmap main thread started"); - if (cmdline_parser_ext(argc, argv, &args, params) != 0) { - exit(EXIT_SUCCESS); - } if (args.help_given) { cmdline_parser_print_help(); exit(EXIT_SUCCESS);