Skip to content

Commit

Permalink
Fixed #650: command line no error message when using -hpx:(anything
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Dec 26, 2012
1 parent 5509b60 commit bafcc04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/command_line_handling.cpp
Expand Up @@ -496,7 +496,7 @@ namespace hpx { namespace util
std::cout << help << std::endl;
return true;
}
else {
else if (0 == std::string("full").find(help_option)) {
// defer printing help until after dynamic part has been
// acquired
hpx::util::osstream strm;
Expand All @@ -505,6 +505,11 @@ namespace hpx { namespace util
detail::encode_string(strm.str());
ini_config_ += "hpx.cmd_line_help_option!=" + help_option;
}
else {
throw std::logic_error(boost::str(boost::format(
"Invalid argument for option --hpx:help: '%1%', allowed values: "
"'minimal' (default) and 'full'") % help_option));
}
}
return false;
}
Expand Down

0 comments on commit bafcc04

Please sign in to comment.