{"action":"created","issue":{"url":"https://api.github.com/repos/drush-ops/drush/issues/1883","labels_url":"https://api.github.com/repos/drush-ops/drush/issues/1883/labels{/name}","comments_url":"https://api.github.com/repos/drush-ops/drush/issues/1883/comments","events_url":"https://api.github.com/repos/drush-ops/drush/issues/1883/events","html_url":"https://github.com/drush-ops/drush/pull/1883","id":123547103,"number":1883,"title":"#1493 - override alias records with cli context options","user":{"login":"blazindrop","id":1039466,"avatar_url":"https://avatars.githubusercontent.com/u/1039466?v=3","gravatar_id":"","url":"https://api.github.com/users/blazindrop","html_url":"https://github.com/blazindrop","followers_url":"https://api.github.com/users/blazindrop/followers","following_url":"https://api.github.com/users/blazindrop/following{/other_user}","gists_url":"https://api.github.com/users/blazindrop/gists{/gist_id}","starred_url":"https://api.github.com/users/blazindrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazindrop/subscriptions","organizations_url":"https://api.github.com/users/blazindrop/orgs","repos_url":"https://api.github.com/users/blazindrop/repos","events_url":"https://api.github.com/users/blazindrop/events{/privacy}","received_events_url":"https://api.github.com/users/blazindrop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T20:03:47Z","updated_at":"2016-01-14T20:33:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/drush-ops/drush/pulls/1883","html_url":"https://github.com/drush-ops/drush/pull/1883","diff_url":"https://github.com/drush-ops/drush/pull/1883.diff","patch_url":"https://github.com/drush-ops/drush/pull/1883.patch"},"body":"First stab at fixing the issue where command line arguments (especially --uri) can't override site aliases. "},"comment":{"url":"https://api.github.com/repos/drush-ops/drush/issues/comments/171771430","html_url":"https://github.com/drush-ops/drush/pull/1883#issuecomment-171771430","issue_url":"https://api.github.com/repos/drush-ops/drush/issues/1883","id":171771430,"user":{"login":"weitzman","id":7740,"avatar_url":"https://avatars.githubusercontent.com/u/7740?v=3","gravatar_id":"","url":"https://api.github.com/users/weitzman","html_url":"https://github.com/weitzman","followers_url":"https://api.github.com/users/weitzman/followers","following_url":"https://api.github.com/users/weitzman/following{/other_user}","gists_url":"https://api.github.com/users/weitzman/gists{/gist_id}","starred_url":"https://api.github.com/users/weitzman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weitzman/subscriptions","organizations_url":"https://api.github.com/users/weitzman/orgs","repos_url":"https://api.github.com/users/weitzman/repos","events_url":"https://api.github.com/users/weitzman/events{/privacy}","received_events_url":"https://api.github.com/users/weitzman/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T20:33:05Z","updated_at":"2016-01-14T20:33:05Z","body":"ping @greg-1-anderson.\r\n\r\nThis one is biting some folks. I did some tests with this command `drush @d7 --uri=http://foo pm-updatecode`. Below is the site alias @d7:\r\n\r\n```\r\n$aliases['foo'] = array(\r\n 'root' => '/Users/moshe.weitzman/htd/d7',\r\n 'uri' => 'http://mm/d7',\r\n);\r\n```\r\n\r\nMy expectation is that the --uri=http://foo on the CLI is propagated to backend calls but that's not happenning on drush7 or drush8. It *is* happenning on drush6. Is this by design? The non-overridden --uri is visible in log excerpt below:\r\n\r\n```\r\nBackend invoke: /usr/local/bin/php /Users/moshe.weitzman/c/h/drush/drush.php --php=/usr/local/bin/php  --backend=2 --verbose --debug --no  --root=/Users/moshe.weitzman/htd/d7 --uri=http://mm/d7  pm-updatestatus 2>&1\r\n```\r\nThis PR fixes the bug for some commands like `drush @foo --uri=http://buytaert.net browse` but not the pm-updatecode example above."}}