{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1146","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1146/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1146/events","html_url":"https://github.com/pytest-dev/pytest/issues/1146","id":112248922,"number":1146,"title":"addoption \"--run\" behaviour is inconsistent.","user":{"login":"EvanTheB","id":1685400,"avatar_url":"https://avatars.githubusercontent.com/u/1685400?v=3","gravatar_id":"","url":"https://api.github.com/users/EvanTheB","html_url":"https://github.com/EvanTheB","followers_url":"https://api.github.com/users/EvanTheB/followers","following_url":"https://api.github.com/users/EvanTheB/following{/other_user}","gists_url":"https://api.github.com/users/EvanTheB/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanTheB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanTheB/subscriptions","organizations_url":"https://api.github.com/users/EvanTheB/orgs","repos_url":"https://api.github.com/users/EvanTheB/repos","events_url":"https://api.github.com/users/EvanTheB/events{/privacy}","received_events_url":"https://api.github.com/users/EvanTheB/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/backward%20compatibility","name":"backward compatibility","color":"f7c6c7"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/critical","name":"critical","color":"e11d21"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T22:49:03Z","updated_at":"2015-10-21T08:31:15Z","closed_at":null,"body":"I created an option with `parser.addoption(\"--run\")`\r\nUsing this option worked find with the command line \r\n`py.test --run argument`\r\nHowever using the alternative syntax\r\n`py.test --run=argument`\r\nCaused the failure `py.test: error: argument --runxfail: ignored explicit argument 'abc'`. I assume that the option matching is using prefixes. I think the behaviour of runxfail being triggered by --run is fine, however the behaviour should be consistent between the two ways of specifying command line options."},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/149816968","html_url":"https://github.com/pytest-dev/pytest/issues/1146#issuecomment-149816968","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1146","id":149816968,"user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T08:31:15Z","updated_at":"2015-10-21T08:31:15Z","body":"https://docs.python.org/2/library/argparse.html#partial-parsing\r\n\r\nso in `preparse` we already kow `runxfail` but not `run`, thus runxfail is matched"}}