Skip to content

Commit

Permalink
Allowing options starting with '--'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Jul 9, 2018
1 parent 76d0f12 commit b0aa127
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions allscale/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ namespace allscale
boost::program_options::options_description const & desc,
int argc, char** argv)
{
std::vector<std::string> cfg = {"hpx.run_hpx_main!=1"};
std::vector<std::string> cfg = {
"hpx.run_hpx_main!=1",
"hpx.commandline.allow_unknown!=1"
};
hpx::resource::partitioner rp(desc, argc, argv, cfg);
partition_resources(rp);
}
Expand All @@ -92,7 +95,10 @@ namespace allscale
boost::program_options::options_description const & desc,
int argc, char** argv)
{
std::vector<std::string> cfg = {"hpx.run_hpx_main!=1"};
std::vector<std::string> cfg = {
"hpx.run_hpx_main!=1",
"hpx.commandline.allow_unknown!=1"
};
if (argc == 0)
{
static const char* argv_[] = {"allscale"};
Expand Down

0 comments on commit b0aa127

Please sign in to comment.