{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/pipenv/issues/927","repository_url":"https://api.github.com/repos/kennethreitz/pipenv","labels_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/927/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/927/comments","events_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/927/events","html_url":"https://github.com/kennethreitz/pipenv/issues/927","id":266281984,"number":927,"title":"\"pipenv run\" intercepts its command-line options when specified after command","user":{"login":"cdunklau","id":882547,"avatar_url":"https://avatars3.githubusercontent.com/u/882547?v=4","gravatar_id":"","url":"https://api.github.com/users/cdunklau","html_url":"https://github.com/cdunklau","followers_url":"https://api.github.com/users/cdunklau/followers","following_url":"https://api.github.com/users/cdunklau/following{/other_user}","gists_url":"https://api.github.com/users/cdunklau/gists{/gist_id}","starred_url":"https://api.github.com/users/cdunklau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdunklau/subscriptions","organizations_url":"https://api.github.com/users/cdunklau/orgs","repos_url":"https://api.github.com/users/cdunklau/repos","events_url":"https://api.github.com/users/cdunklau/events{/privacy}","received_events_url":"https://api.github.com/users/cdunklau/received_events","type":"User","site_admin":false},"labels":[{"id":522150494,"url":"https://api.github.com/repos/kennethreitz/pipenv/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-17T21:18:07Z","updated_at":"2017-10-27T18:15:10Z","closed_at":"2017-10-19T05:58:10Z","author_association":"NONE","body":"```\r\nhobbes:backend cdunklau$ pipenv run pip --help\r\nUsage: pipenv run [OPTIONS] COMMAND [ARGS]...\r\n\r\n  Spawns a command installed into the virtualenv.\r\n\r\nOptions:\r\n  --three / --two  Use Python 3/2 when creating virtualenv.\r\n  --python TEXT    Specify which version of Python virtualenv should use.\r\n  -h, --help       Show this message and exit.\r\n```\r\n\r\n...that should have been the help for pip, but I got `pipenv run`'s help.\r\n\r\nLooks like this comes down to how `click` handles things. The workaround is simply to use `--`. Both `pipenv run -- pip --help` and `pipenv run pip -- --help` give me pip's help output. This also appears to happen for the other `pipenv run` options: `--two`, `--three`, and `--python`.\r\n\r\nI'd expect at least a mention in the `pipenv run` help output about this, if preventing click's normal behavior isn't feasible.\r\n"},"comment":{"url":"https://api.github.com/repos/kennethreitz/pipenv/issues/comments/340046048","html_url":"https://github.com/kennethreitz/pipenv/issues/927#issuecomment-340046048","issue_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/927","id":340046048,"user":{"login":"jacebrowning","id":939501,"avatar_url":"https://avatars0.githubusercontent.com/u/939501?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebrowning","html_url":"https://github.com/jacebrowning","followers_url":"https://api.github.com/users/jacebrowning/followers","following_url":"https://api.github.com/users/jacebrowning/following{/other_user}","gists_url":"https://api.github.com/users/jacebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebrowning/subscriptions","organizations_url":"https://api.github.com/users/jacebrowning/orgs","repos_url":"https://api.github.com/users/jacebrowning/repos","events_url":"https://api.github.com/users/jacebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/jacebrowning/received_events","type":"User","site_admin":false},"created_at":"2017-10-27T18:15:10Z","updated_at":"2017-10-27T18:15:10Z","author_association":"CONTRIBUTOR","body":"Could we get another release please? 😄 "}}
{"actor":{"display_login":"jacebrowning"}}