{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11245","labels_url":"https://api.github.com/repos/docker/docker/issues/11245/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11245/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11245/events","html_url":"https://github.com/docker/docker/pull/11245","id":60286037,"number":11245,"title":"Improve deprecation messages and message for \"commit --run\"","user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/0-triage","name":"0-triage","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T00:50:27Z","updated_at":"2015-03-09T00:55:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11245","html_url":"https://github.com/docker/docker/pull/11245","diff_url":"https://github.com/docker/docker/pull/11245.diff","patch_url":"https://github.com/docker/docker/pull/11245.patch"},"body":"This implements \"see other\" flags for deprecation messages, which allows a \"replacement\" flag to refer to another flag that is defined separately.\r\n\r\nBefore this change, the \"replacement\" flag could only be part of the same flag definitions, which made it impossible to output a deprecation message for flags that were replaced with another flag.\r\n\r\nThe \"see other\" replacement flags can be set by prefixing the flag-name with '@' and are ignored as an actual\r\nflag.\r\n\r\nIn addition the deprecation warning for `docker commit --run` was improved (using the feature above) to give a hint for the new `--change` flag.\r\n\r\nBefore this change;\r\n\r\n    Warning: '--run' is deprecated, it will be removed soon. See usage.\r\n\r\nAfter:\r\n\r\n    Warning: '--run' is deprecated, it will be replaced by '--change' soon. See usage.\r\n\r\nrelates to: https://github.com/docker/docker/issues/9525#issuecomment-77700372\r\n\r\n**notes**\r\n\r\n- I wasn't sure if these changes should be created as two separate pull-requests, I kept them as two commits, but let me know if you want them to be split to two pull-requests.\r\n- It's my first \"playing around\" with the code. Probably lots of improvements to be made; hit me!\r\n- Attempted to add some tests, but open to suggestions :)\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/77785960","html_url":"https://github.com/docker/docker/pull/11245#issuecomment-77785960","issue_url":"https://api.github.com/repos/docker/docker/issues/11245","id":77785960,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T00:55:30Z","updated_at":"2015-03-09T00:55:30Z","body":"Oh, shucks. Looks like I messed up something (tests ran on my machine), will keep open, but check tomorrow. "}}