Skip to content

Commit 06b53aa

Browse files
committed
fix --version flag
1 parent d1c9099 commit 06b53aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/map/include/parseCmdArgs.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ sequences shorter than segment length will be ignored", ArgvParser::OptionRequir
237237
{
238238
int result = cmd.parse(argc, argv);
239239

240+
if(cmd.foundOption("version"))
241+
{
242+
std::cerr << fixed::VERSION << std::endl;
243+
exit(0);
244+
}
245+
240246
//Make sure we get the right command line args
241247
if (result != ArgvParser::NoParserError)
242248
{
@@ -251,12 +257,6 @@ sequences shorter than segment length will be ignored", ArgvParser::OptionRequir
251257

252258
std::stringstream str;
253259

254-
if(cmd.foundOption("version"))
255-
{
256-
std::cerr << fixed::VERSION << std::endl;
257-
exit(0);
258-
}
259-
260260
//Parse reference files
261261
if(cmd.foundOption("ref"))
262262
{

0 commit comments

Comments
 (0)