{"action":"created","issue":{"url":"https://api.github.com/repos/hanami/hanami/issues/623","repository_url":"https://api.github.com/repos/hanami/hanami","labels_url":"https://api.github.com/repos/hanami/hanami/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/hanami/hanami/issues/623/comments","events_url":"https://api.github.com/repos/hanami/hanami/issues/623/events","html_url":"https://github.com/hanami/hanami/issues/623","id":168515604,"number":623,"title":"--help options does not work correctly for some subcommands","user":{"login":"igneus","id":53101,"avatar_url":"https://avatars.githubusercontent.com/u/53101?v=3","gravatar_id":"","url":"https://api.github.com/users/igneus","html_url":"https://github.com/igneus","followers_url":"https://api.github.com/users/igneus/followers","following_url":"https://api.github.com/users/igneus/following{/other_user}","gists_url":"https://api.github.com/users/igneus/gists{/gist_id}","starred_url":"https://api.github.com/users/igneus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igneus/subscriptions","organizations_url":"https://api.github.com/users/igneus/orgs","repos_url":"https://api.github.com/users/igneus/repos","events_url":"https://api.github.com/users/igneus/events{/privacy}","received_events_url":"https://api.github.com/users/igneus/received_events","type":"User","site_admin":false},"labels":[{"id":51404909,"url":"https://api.github.com/repos/hanami/hanami/labels/bug","name":"bug","color":"fc2929","default":true},{"id":106449241,"url":"https://api.github.com/repos/hanami/hanami/labels/help-wanted","name":"help-wanted","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hanami/hanami/milestones/20","html_url":"https://github.com/hanami/hanami/milestone/20","labels_url":"https://api.github.com/repos/hanami/hanami/milestones/20/labels","id":2129215,"number":20,"title":"v1.1.0","description":"","creator":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-11-11T12:00:17Z","updated_at":"2017-01-31T13:51:36Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-07-31T12:28:55Z","updated_at":"2017-02-01T00:38:21Z","closed_at":null,"body":"`hanami new --help`, instead of describing available options, prints\n\n```\nERROR: \"hanami new\" was called with no arguments\nUsage: \"hanami new APPLICATION_NAME\"\n```\n\nThis discovery made me try the `--help` option for all other subcommands (at least those listed by `hanami help`). This way I found a bug\n- `hanami db --help`\n- `hanami destroy --help`\n- `hanami generate --help`\n\nAll these commands print\n\n```\nUsage:\n  hanami help [COMMAND]\n\nDescribe subcommands or one specific subcommand\n```\n\nwhich is help for `hanami help`, not for the respective subcommands.\n\n**(ADDED LATER)**\n\nHelp for sub-subcommands prints misleading usage synopsis: e.g. `hanami db create --help` prints\n\n```\nUsage:\n  hanami create\n```\n\ninstead of expected\n\n```\nUsage:\n  hanami db create\n```\n"},"comment":{"url":"https://api.github.com/repos/hanami/hanami/issues/comments/276539572","html_url":"https://github.com/hanami/hanami/issues/623#issuecomment-276539572","issue_url":"https://api.github.com/repos/hanami/hanami/issues/623","id":276539572,"user":{"login":"docStonehenge","id":12706777,"avatar_url":"https://avatars.githubusercontent.com/u/12706777?v=3","gravatar_id":"","url":"https://api.github.com/users/docStonehenge","html_url":"https://github.com/docStonehenge","followers_url":"https://api.github.com/users/docStonehenge/followers","following_url":"https://api.github.com/users/docStonehenge/following{/other_user}","gists_url":"https://api.github.com/users/docStonehenge/gists{/gist_id}","starred_url":"https://api.github.com/users/docStonehenge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docStonehenge/subscriptions","organizations_url":"https://api.github.com/users/docStonehenge/orgs","repos_url":"https://api.github.com/users/docStonehenge/repos","events_url":"https://api.github.com/users/docStonehenge/events{/privacy}","received_events_url":"https://api.github.com/users/docStonehenge/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T00:38:21Z","updated_at":"2017-02-01T00:38:21Z","body":"Hello, guys ! I saw this problem on Hanami cli help descriptions, so I went further to check what could probably be. I've also found this old StackOverflow post, [http://stackoverflow.com/questions/5663519/namespacing-thor-commands-in-a-standalone-ruby-executable](url) which seems to be a similar problem with subcommands. As described above, overwriting Thor.banner solves this issue. Can I offer my assistance ? "}}
{"actor":{"display_login":"docStonehenge"}}