{"action":"opened","issue":{"url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1437","labels_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1437/labels{/name}","comments_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1437/comments","events_url":"https://api.github.com/repos/STEllAR-GROUP/hpx/issues/1437/events","html_url":"https://github.com/STEllAR-GROUP/hpx/issues/1437","id":65474167,"number":1437,"title":"hpx::init() should strip HPX-related flags from argv","user":{"login":"gentryx","id":1305099,"avatar_url":"https://avatars.githubusercontent.com/u/1305099?v=3","gravatar_id":"","url":"https://api.github.com/users/gentryx","html_url":"https://github.com/gentryx","followers_url":"https://api.github.com/users/gentryx/followers","following_url":"https://api.github.com/users/gentryx/following{/other_user}","gists_url":"https://api.github.com/users/gentryx/gists{/gist_id}","starred_url":"https://api.github.com/users/gentryx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentryx/subscriptions","organizations_url":"https://api.github.com/users/gentryx/orgs","repos_url":"https://api.github.com/users/gentryx/repos","events_url":"https://api.github.com/users/gentryx/events{/privacy}","received_events_url":"https://api.github.com/users/gentryx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-31T15:08:56Z","updated_at":"2015-03-31T15:08:56Z","closed_at":null,"body":"Right now the [different variants](http://stellar-group.github.io/hpx/docs/html/header/hpx/hpx_init_hpp.html) of hpx::init differ in their behavior regarding whether they'll delete command line flags from the corresponding vectors. The behavior should be uniform. It might be beneficial to allow the user to configure this behavior. In any case the default should be that user code won't see HPX flags. Initial discussion is [here](http://mail.cct.lsu.edu/pipermail/hpx-users/2015-March/000546.html).\r\n\r\nCode example:\r\n\r\n   int my_hpx_main(int argc, char **argv)\r\n   {\r\n     run_tests(argc, argv);\r\n     return hpx::finalize();\r\n   }\r\n\r\n   int main(int argc, char **argv)\r\n   {\r\n     return hpx::init(&my_hpx_main, \\\"libgeodecomp_tests\\\", argc, argv);\r\n    }"}}