{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/brew/issues/2420","repository_url":"https://api.github.com/repos/Homebrew/brew","labels_url":"https://api.github.com/repos/Homebrew/brew/issues/2420/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/2420/comments","events_url":"https://api.github.com/repos/Homebrew/brew/issues/2420/events","html_url":"https://github.com/Homebrew/brew/pull/2420","id":218067598,"number":2420,"title":"Emit warnings for mistyped options : \"brew commands --options\"","user":{"login":"raza15","id":11088971,"avatar_url":"https://avatars2.githubusercontent.com/u/11088971?v=3","gravatar_id":"","url":"https://api.github.com/users/raza15","html_url":"https://github.com/raza15","followers_url":"https://api.github.com/users/raza15/followers","following_url":"https://api.github.com/users/raza15/following{/other_user}","gists_url":"https://api.github.com/users/raza15/gists{/gist_id}","starred_url":"https://api.github.com/users/raza15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raza15/subscriptions","organizations_url":"https://api.github.com/users/raza15/orgs","repos_url":"https://api.github.com/users/raza15/repos","events_url":"https://api.github.com/users/raza15/events{/privacy}","received_events_url":"https://api.github.com/users/raza15/received_events","type":"User","site_admin":false},"labels":[{"id":351930959,"url":"https://api.github.com/repos/Homebrew/brew/labels/do%20not%20merge","name":"do not merge","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2017-03-30T03:02:11Z","updated_at":"2017-04-26T08:32:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/2420","html_url":"https://github.com/Homebrew/brew/pull/2420","diff_url":"https://github.com/Homebrew/brew/pull/2420.diff","patch_url":"https://github.com/Homebrew/brew/pull/2420.patch"},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/homebrew/pull/49031).\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\nFor the Homebrew command ``` commands ```:\r\nPreviously, when running ``` brew commands --SomeInvalidOption ```, the command would run without notifying the user that he/she has typed an invalid option. This PR resolves that and now when a ``` brew commands ``` is run with an invalid option, the command does not execute and it notifies the user that he/she has typed an invalid option.\r\n\r\nSome example test cases after the changes are described below.\r\n\r\nrun: ``` brew commands --include-aliases --blah --blah2 ```\r\noutput:\r\n```\r\nError: Invalid options provided: \r\n--blah\r\n--blah2\r\nValid options are: \r\n--quiet\r\n--include-aliases\r\n```\r\n\r\nrun: ``` brew commands --include-aliases ```\r\noutput: runs smoothly as it would before\r\n\r\nrun: ``` brew commands --quiet ```\r\noutput: runs smoothly as it would before\r\n\r\nrun: ```brew commands --quite ```\r\noutput:\r\n```\r\nError: Invalid options provided: \r\n--quite\r\nValid options are: \r\n--quiet\r\n--include-aliases\r\n```"},"comment":{"url":"https://api.github.com/repos/Homebrew/brew/issues/comments/297291253","html_url":"https://github.com/Homebrew/brew/pull/2420#issuecomment-297291253","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/2420","id":297291253,"user":{"login":"raza15","id":11088971,"avatar_url":"https://avatars2.githubusercontent.com/u/11088971?v=3","gravatar_id":"","url":"https://api.github.com/users/raza15","html_url":"https://github.com/raza15","followers_url":"https://api.github.com/users/raza15/followers","following_url":"https://api.github.com/users/raza15/following{/other_user}","gists_url":"https://api.github.com/users/raza15/gists{/gist_id}","starred_url":"https://api.github.com/users/raza15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raza15/subscriptions","organizations_url":"https://api.github.com/users/raza15/orgs","repos_url":"https://api.github.com/users/raza15/repos","events_url":"https://api.github.com/users/raza15/events{/privacy}","received_events_url":"https://api.github.com/users/raza15/received_events","type":"User","site_admin":false},"created_at":"2017-04-26T08:32:30Z","updated_at":"2017-04-26T08:32:30Z","body":"Hi @alyssais, I've added the tests. Let know your comments on it. Also, do let me know which format of the tests do you prefer: (test 4 & 5) or (test 6). \r\n\r\nThanks!"}}
{"actor":{"display_login":"raza15"}}