{"action":"created","issue":{"url":"https://api.github.com/repos/qgis/QGIS/issues/2496","labels_url":"https://api.github.com/repos/qgis/QGIS/issues/2496/labels{/name}","comments_url":"https://api.github.com/repos/qgis/QGIS/issues/2496/comments","events_url":"https://api.github.com/repos/qgis/QGIS/issues/2496/events","html_url":"https://github.com/qgis/QGIS/pull/2496","id":118277599,"number":2496,"title":"[FEATURE] accept option '--' to mark all following arguments as files (refs #3714)","user":{"login":"SebDieBln","id":15147421,"avatar_url":"https://avatars.githubusercontent.com/u/15147421?v=3","gravatar_id":"","url":"https://api.github.com/users/SebDieBln","html_url":"https://github.com/SebDieBln","followers_url":"https://api.github.com/users/SebDieBln/followers","following_url":"https://api.github.com/users/SebDieBln/following{/other_user}","gists_url":"https://api.github.com/users/SebDieBln/gists{/gist_id}","starred_url":"https://api.github.com/users/SebDieBln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebDieBln/subscriptions","organizations_url":"https://api.github.com/users/SebDieBln/orgs","repos_url":"https://api.github.com/users/SebDieBln/repos","events_url":"https://api.github.com/users/SebDieBln/events{/privacy}","received_events_url":"https://api.github.com/users/SebDieBln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-22T17:57:37Z","updated_at":"2015-11-22T20:02:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qgis/QGIS/pulls/2496","html_url":"https://github.com/qgis/QGIS/pull/2496","diff_url":"https://github.com/qgis/QGIS/pull/2496.diff","patch_url":"https://github.com/qgis/QGIS/pull/2496.patch"},"body":"If the user wanted to load a file that is named like an option, this was not possible, because the command line argument was always interpreted as an option. This PR makes it possible.\r\n\r\nAs before, every command line argument is checked whether it matches one of the known options (e.g. ```--help```) and if it doesn't, it is treated as a file to load, either project or layer.\r\nAdditionally the new option ```--``` is introduced and every argument following it is treated as a filename.\r\nSo to load a layer named _--help_ the correct arguments are now ```-- --help```.\r\n\r\nThis PR includes a test case for the new functionality and some minor improvements to the test."},"comment":{"url":"https://api.github.com/repos/qgis/QGIS/issues/comments/158793933","html_url":"https://github.com/qgis/QGIS/pull/2496#issuecomment-158793933","issue_url":"https://api.github.com/repos/qgis/QGIS/issues/2496","id":158793933,"user":{"login":"nyalldawson","id":1829991,"avatar_url":"https://avatars.githubusercontent.com/u/1829991?v=3","gravatar_id":"","url":"https://api.github.com/users/nyalldawson","html_url":"https://github.com/nyalldawson","followers_url":"https://api.github.com/users/nyalldawson/followers","following_url":"https://api.github.com/users/nyalldawson/following{/other_user}","gists_url":"https://api.github.com/users/nyalldawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nyalldawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyalldawson/subscriptions","organizations_url":"https://api.github.com/users/nyalldawson/orgs","repos_url":"https://api.github.com/users/nyalldawson/repos","events_url":"https://api.github.com/users/nyalldawson/events{/privacy}","received_events_url":"https://api.github.com/users/nyalldawson/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T20:02:23Z","updated_at":"2015-11-22T20:02:23Z","body":"Can you rebase against master? Travis was failing through no fault of this PR"}}