Skip to content

Commit

Permalink
Disable command-line aliasing for applications that use user_main
Browse files Browse the repository at this point in the history
- those applications most likely will do their own command line handling,
  disabling hpx short options will prevent for the user to run into
  surprises.
  • Loading branch information
hkaiser committed Nov 21, 2017
1 parent e7e1ee2 commit 8ea460e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hpx/hpx_main_impl.hpp
Expand Up @@ -27,9 +27,10 @@
//
int HPX_CDECL main(int argc, char** argv)
{
// allow for unknown options
// allow for unknown options and inhibit aliasing of short options
std::vector<std::string> const cfg = {
"hpx.commandline.allow_unknown=1"
"hpx.commandline.allow_unknown=1",
"hpx.commandline.aliasing=0"
};

return hpx::init(argc, argv, cfg);
Expand Down

0 comments on commit 8ea460e

Please sign in to comment.