Skip to content

Commit

Permalink
Merge pull request #1500 from STEllAR-GROUP/fixing_1494
Browse files Browse the repository at this point in the history
Exit application on --hpx:version/-v and --hpx:info
  • Loading branch information
hkaiser committed May 11, 2015
2 parents ed8e687 + de845fb commit 23a7ab3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/util/command_line_handling.cpp
Expand Up @@ -954,12 +954,16 @@ namespace hpx { namespace util
rtcfg_.reconfigure(ini_config_);

// print version/copyright information
if (vm_.count("hpx:version"))
if (vm_.count("hpx:version")) {
detail::print_version(std::cout);
return 1;
}

// print configuration information (static and dynamic)
if (vm_.count("hpx:info"))
if (vm_.count("hpx:info")) {
detail::print_info(std::cout, *this);
return 1;
}

// all is good
return 0;
Expand Down

0 comments on commit 23a7ab3

Please sign in to comment.