From 06b53aa5cdb973f86138bf3a5b96be827ffb720c Mon Sep 17 00:00:00 2001 From: Bryce Lorenz Kille Date: Thu, 18 May 2023 12:11:14 -0500 Subject: [PATCH] fix --version flag --- src/map/include/parseCmdArgs.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/map/include/parseCmdArgs.hpp b/src/map/include/parseCmdArgs.hpp index ff10863..1ad5d4d 100644 --- a/src/map/include/parseCmdArgs.hpp +++ b/src/map/include/parseCmdArgs.hpp @@ -237,6 +237,12 @@ sequences shorter than segment length will be ignored", ArgvParser::OptionRequir { int result = cmd.parse(argc, argv); + if(cmd.foundOption("version")) + { + std::cerr << fixed::VERSION << std::endl; + exit(0); + } + //Make sure we get the right command line args if (result != ArgvParser::NoParserError) { @@ -251,12 +257,6 @@ sequences shorter than segment length will be ignored", ArgvParser::OptionRequir std::stringstream str; - if(cmd.foundOption("version")) - { - std::cerr << fixed::VERSION << std::endl; - exit(0); - } - //Parse reference files if(cmd.foundOption("ref")) {