{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11418","labels_url":"https://api.github.com/repos/docker/docker/issues/11418/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11418/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11418/events","html_url":"https://github.com/docker/docker/pull/11418","id":62179864,"number":11418,"title":"Fixes Issue 9677: Docker client errors out, when daemon flags are passed to docker subcommands","user":{"login":"shishir-a412ed","id":4207652,"avatar_url":"https://avatars.githubusercontent.com/u/4207652?v=3","gravatar_id":"","url":"https://api.github.com/users/shishir-a412ed","html_url":"https://github.com/shishir-a412ed","followers_url":"https://api.github.com/users/shishir-a412ed/followers","following_url":"https://api.github.com/users/shishir-a412ed/following{/other_user}","gists_url":"https://api.github.com/users/shishir-a412ed/gists{/gist_id}","starred_url":"https://api.github.com/users/shishir-a412ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shishir-a412ed/subscriptions","organizations_url":"https://api.github.com/users/shishir-a412ed/orgs","repos_url":"https://api.github.com/users/shishir-a412ed/repos","events_url":"https://api.github.com/users/shishir-a412ed/events{/privacy}","received_events_url":"https://api.github.com/users/shishir-a412ed/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/dco/yes","name":"dco/yes","color":"1693A7"},{"url":"https://api.github.com/repos/docker/docker/labels/status/needs-code-review","name":"status/needs-code-review","color":"F56991"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T19:05:27Z","updated_at":"2015-03-23T16:28:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11418","html_url":"https://github.com/docker/docker/pull/11418","diff_url":"https://github.com/docker/docker/pull/11418.diff","patch_url":"https://github.com/docker/docker/pull/11418.patch"},"body":"Fixes #9677"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/85078175","html_url":"https://github.com/docker/docker/pull/11418#issuecomment-85078175","issue_url":"https://api.github.com/repos/docker/docker/issues/11418","id":85078175,"user":{"login":"shishir-a412ed","id":4207652,"avatar_url":"https://avatars.githubusercontent.com/u/4207652?v=3","gravatar_id":"","url":"https://api.github.com/users/shishir-a412ed","html_url":"https://github.com/shishir-a412ed","followers_url":"https://api.github.com/users/shishir-a412ed/followers","following_url":"https://api.github.com/users/shishir-a412ed/following{/other_user}","gists_url":"https://api.github.com/users/shishir-a412ed/gists{/gist_id}","starred_url":"https://api.github.com/users/shishir-a412ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shishir-a412ed/subscriptions","organizations_url":"https://api.github.com/users/shishir-a412ed/orgs","repos_url":"https://api.github.com/users/shishir-a412ed/repos","events_url":"https://api.github.com/users/shishir-a412ed/events{/privacy}","received_events_url":"https://api.github.com/users/shishir-a412ed/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T16:28:59Z","updated_at":"2015-03-23T16:28:59Z","body":"@duglin right now docker flag parsing relies on one hashmap to classify whether the incoming argument is a flag or not. That map includes both daemon and global flags. Unless we use two maps to store daemon and global args separately, I don't see a way to avoid this extra map.\r\n\r\nN Separating IMHO would not be easy, it has dependencies everywhere. \r\nFor this error, we need some kind of data structure to look-up if the incoming argument is a daemon flag or not.\r\n\r\nI will  reorder the entries according to the help menu. And also add the deprecated flags which I have not added.\r\n\r\nShishir"}}