{"action":"created","issue":{"url":"https://api.github.com/repos/spf13/cobra/issues/86","labels_url":"https://api.github.com/repos/spf13/cobra/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/spf13/cobra/issues/86/comments","events_url":"https://api.github.com/repos/spf13/cobra/issues/86/events","html_url":"https://github.com/spf13/cobra/pull/86","id":66699392,"number":86,"title":"Require commands to explicitly state they take arbitrary arguments","user":{"login":"eparis","id":8093535,"avatar_url":"https://avatars.githubusercontent.com/u/8093535?v=3","gravatar_id":"","url":"https://api.github.com/users/eparis","html_url":"https://github.com/eparis","followers_url":"https://api.github.com/users/eparis/followers","following_url":"https://api.github.com/users/eparis/following{/other_user}","gists_url":"https://api.github.com/users/eparis/gists{/gist_id}","starred_url":"https://api.github.com/users/eparis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparis/subscriptions","organizations_url":"https://api.github.com/users/eparis/orgs","repos_url":"https://api.github.com/users/eparis/repos","events_url":"https://api.github.com/users/eparis/events{/privacy}","received_events_url":"https://api.github.com/users/eparis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-06T20:37:48Z","updated_at":"2015-06-29T00:50:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spf13/cobra/pulls/86","html_url":"https://github.com/spf13/cobra/pull/86","diff_url":"https://github.com/spf13/cobra/pull/86.diff","patch_url":"https://github.com/spf13/cobra/pull/86.patch"},"body":"The code is riddled with inconsistencies between the root command and\r\nsubcommands.  One of those is that the root command cannot take\r\narbitrary arguments and will complain about invalid subcommands.  But\r\nsubcommands will always take arbitrary arguments and will never complain\r\nabout invalid sub-sub-commands. I make arbitrary arguments explicitly\r\nlisted. You now need to set cmd.TakesArgs = true if you need to be able\r\nto accept arguments tha aren't flags.\r\n\r\nThis is a pretty major change."},"comment":{"url":"https://api.github.com/repos/spf13/cobra/issues/comments/116364111","html_url":"https://github.com/spf13/cobra/pull/86#issuecomment-116364111","issue_url":"https://api.github.com/repos/spf13/cobra/issues/86","id":116364111,"user":{"login":"pdf","id":146192,"avatar_url":"https://avatars.githubusercontent.com/u/146192?v=3","gravatar_id":"","url":"https://api.github.com/users/pdf","html_url":"https://github.com/pdf","followers_url":"https://api.github.com/users/pdf/followers","following_url":"https://api.github.com/users/pdf/following{/other_user}","gists_url":"https://api.github.com/users/pdf/gists{/gist_id}","starred_url":"https://api.github.com/users/pdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdf/subscriptions","organizations_url":"https://api.github.com/users/pdf/orgs","repos_url":"https://api.github.com/users/pdf/repos","events_url":"https://api.github.com/users/pdf/events{/privacy}","received_events_url":"https://api.github.com/users/pdf/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T00:50:05Z","updated_at":"2015-06-29T00:50:05Z","body":"@ghodss this logic appears sound to me."}}