{"action":"opened","number":286,"pull_request":{"url":"https://api.github.com/repos/codegangsta/cli/pulls/286","id":48021995,"html_url":"https://github.com/codegangsta/cli/pull/286","diff_url":"https://github.com/codegangsta/cli/pull/286.diff","patch_url":"https://github.com/codegangsta/cli/pull/286.patch","issue_url":"https://api.github.com/repos/codegangsta/cli/issues/286","number":286,"state":"open","locked":false,"title":"only display app version and help message once","user":{"login":"rmg","id":17978,"avatar_url":"https://avatars.githubusercontent.com/u/17978?v=3","gravatar_id":"","url":"https://api.github.com/users/rmg","html_url":"https://github.com/rmg","followers_url":"https://api.github.com/users/rmg/followers","following_url":"https://api.github.com/users/rmg/following{/other_user}","gists_url":"https://api.github.com/users/rmg/gists{/gist_id}","starred_url":"https://api.github.com/users/rmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmg/subscriptions","organizations_url":"https://api.github.com/users/rmg/orgs","repos_url":"https://api.github.com/users/rmg/repos","events_url":"https://api.github.com/users/rmg/events{/privacy}","received_events_url":"https://api.github.com/users/rmg/received_events","type":"User","site_admin":false},"body":"When processing the flags for -h/--help and -v/--version, only check\r\nthe flags in checkVersion() and checkHelp() instead of also printing\r\nthe associated message.\r\n\r\nThis fixes the problem of `app -h` and `app -v` printing their output\r\ntwice. The doubling was caused by printing the message once for each\r\nregistred alias for the given flags (-h/--help and -v/--version).\r\n\r\nResolves #285","created_at":"2015-10-19T00:09:34Z","updated_at":"2015-10-19T00:09:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codegangsta/cli/pulls/286/commits","review_comments_url":"https://api.github.com/repos/codegangsta/cli/pulls/286/comments","review_comment_url":"https://api.github.com/repos/codegangsta/cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codegangsta/cli/issues/286/comments","statuses_url":"https://api.github.com/repos/codegangsta/cli/statuses/732e97aee8f2fd38b1ff346354d81bdfb5e1a5ad","head":{"label":"mktmpio:dedup-help-and-version","ref":"dedup-help-and-version","sha":"732e97aee8f2fd38b1ff346354d81bdfb5e1a5ad","user":{"login":"mktmpio","id":12501201,"avatar_url":"https://avatars.githubusercontent.com/u/12501201?v=3","gravatar_id":"","url":"https://api.github.com/users/mktmpio","html_url":"https://github.com/mktmpio","followers_url":"https://api.github.com/users/mktmpio/followers","following_url":"https://api.github.com/users/mktmpio/following{/other_user}","gists_url":"https://api.github.com/users/mktmpio/gists{/gist_id}","starred_url":"https://api.github.com/users/mktmpio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mktmpio/subscriptions","organizations_url":"https://api.github.com/users/mktmpio/orgs","repos_url":"https://api.github.com/users/mktmpio/repos","events_url":"https://api.github.com/users/mktmpio/events{/privacy}","received_events_url":"https://api.github.com/users/mktmpio/received_events","type":"Organization","site_admin":false},"repo":{"id":44501183,"name":"codegangsta-cli","full_name":"mktmpio/codegangsta-cli","owner":{"login":"mktmpio","id":12501201,"avatar_url":"https://avatars.githubusercontent.com/u/12501201?v=3","gravatar_id":"","url":"https://api.github.com/users/mktmpio","html_url":"https://github.com/mktmpio","followers_url":"https://api.github.com/users/mktmpio/followers","following_url":"https://api.github.com/users/mktmpio/following{/other_user}","gists_url":"https://api.github.com/users/mktmpio/gists{/gist_id}","starred_url":"https://api.github.com/users/mktmpio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mktmpio/subscriptions","organizations_url":"https://api.github.com/users/mktmpio/orgs","repos_url":"https://api.github.com/users/mktmpio/repos","events_url":"https://api.github.com/users/mktmpio/events{/privacy}","received_events_url":"https://api.github.com/users/mktmpio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mktmpio/codegangsta-cli","description":"A small package for building command line apps in Go","fork":true,"url":"https://api.github.com/repos/mktmpio/codegangsta-cli","forks_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/forks","keys_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/teams","hooks_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/hooks","issue_events_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/issues/events{/number}","events_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/events","assignees_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/assignees{/user}","branches_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/branches{/branch}","tags_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/tags","blobs_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/languages","stargazers_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/stargazers","contributors_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/contributors","subscribers_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/subscribers","subscription_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/subscription","commits_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/contents/{+path}","compare_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/merges","archive_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/downloads","issues_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/issues{/number}","pulls_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/labels{/name}","releases_url":"https://api.github.com/repos/mktmpio/codegangsta-cli/releases{/id}","created_at":"2015-10-18T23:37:37Z","updated_at":"2015-10-18T23:37:59Z","pushed_at":"2015-10-19T00:08:49Z","git_url":"git://github.com/mktmpio/codegangsta-cli.git","ssh_url":"git@github.com:mktmpio/codegangsta-cli.git","clone_url":"https://github.com/mktmpio/codegangsta-cli.git","svn_url":"https://github.com/mktmpio/codegangsta-cli","homepage":"","size":3157,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codegangsta:master","ref":"master","sha":"aba946908353f5182d9bf71b6fdfd814ceae31d0","user":{"login":"codegangsta","id":178316,"avatar_url":"https://avatars.githubusercontent.com/u/178316?v=3","gravatar_id":"","url":"https://api.github.com/users/codegangsta","html_url":"https://github.com/codegangsta","followers_url":"https://api.github.com/users/codegangsta/followers","following_url":"https://api.github.com/users/codegangsta/following{/other_user}","gists_url":"https://api.github.com/users/codegangsta/gists{/gist_id}","starred_url":"https://api.github.com/users/codegangsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codegangsta/subscriptions","organizations_url":"https://api.github.com/users/codegangsta/orgs","repos_url":"https://api.github.com/users/codegangsta/repos","events_url":"https://api.github.com/users/codegangsta/events{/privacy}","received_events_url":"https://api.github.com/users/codegangsta/received_events","type":"User","site_admin":false},"repo":{"id":11393110,"name":"cli","full_name":"codegangsta/cli","owner":{"login":"codegangsta","id":178316,"avatar_url":"https://avatars.githubusercontent.com/u/178316?v=3","gravatar_id":"","url":"https://api.github.com/users/codegangsta","html_url":"https://github.com/codegangsta","followers_url":"https://api.github.com/users/codegangsta/followers","following_url":"https://api.github.com/users/codegangsta/following{/other_user}","gists_url":"https://api.github.com/users/codegangsta/gists{/gist_id}","starred_url":"https://api.github.com/users/codegangsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codegangsta/subscriptions","organizations_url":"https://api.github.com/users/codegangsta/orgs","repos_url":"https://api.github.com/users/codegangsta/repos","events_url":"https://api.github.com/users/codegangsta/events{/privacy}","received_events_url":"https://api.github.com/users/codegangsta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codegangsta/cli","description":"A small package for building command line apps in Go","fork":false,"url":"https://api.github.com/repos/codegangsta/cli","forks_url":"https://api.github.com/repos/codegangsta/cli/forks","keys_url":"https://api.github.com/repos/codegangsta/cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codegangsta/cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codegangsta/cli/teams","hooks_url":"https://api.github.com/repos/codegangsta/cli/hooks","issue_events_url":"https://api.github.com/repos/codegangsta/cli/issues/events{/number}","events_url":"https://api.github.com/repos/codegangsta/cli/events","assignees_url":"https://api.github.com/repos/codegangsta/cli/assignees{/user}","branches_url":"https://api.github.com/repos/codegangsta/cli/branches{/branch}","tags_url":"https://api.github.com/repos/codegangsta/cli/tags","blobs_url":"https://api.github.com/repos/codegangsta/cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codegangsta/cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codegangsta/cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/codegangsta/cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codegangsta/cli/statuses/{sha}","languages_url":"https://api.github.com/repos/codegangsta/cli/languages","stargazers_url":"https://api.github.com/repos/codegangsta/cli/stargazers","contributors_url":"https://api.github.com/repos/codegangsta/cli/contributors","subscribers_url":"https://api.github.com/repos/codegangsta/cli/subscribers","subscription_url":"https://api.github.com/repos/codegangsta/cli/subscription","commits_url":"https://api.github.com/repos/codegangsta/cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/codegangsta/cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/codegangsta/cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/codegangsta/cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/codegangsta/cli/contents/{+path}","compare_url":"https://api.github.com/repos/codegangsta/cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codegangsta/cli/merges","archive_url":"https://api.github.com/repos/codegangsta/cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codegangsta/cli/downloads","issues_url":"https://api.github.com/repos/codegangsta/cli/issues{/number}","pulls_url":"https://api.github.com/repos/codegangsta/cli/pulls{/number}","milestones_url":"https://api.github.com/repos/codegangsta/cli/milestones{/number}","notifications_url":"https://api.github.com/repos/codegangsta/cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codegangsta/cli/labels{/name}","releases_url":"https://api.github.com/repos/codegangsta/cli/releases{/id}","created_at":"2013-07-13T19:32:06Z","updated_at":"2015-10-18T10:42:52Z","pushed_at":"2015-10-18T18:40:02Z","git_url":"git://github.com/codegangsta/cli.git","ssh_url":"git@github.com:codegangsta/cli.git","clone_url":"https://github.com/codegangsta/cli.git","svn_url":"https://github.com/codegangsta/cli","homepage":"","size":3157,"stargazers_count":3338,"watchers_count":3338,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":289,"mirror_url":null,"open_issues_count":60,"forks":289,"open_issues":60,"watchers":3338,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codegangsta/cli/pulls/286"},"html":{"href":"https://github.com/codegangsta/cli/pull/286"},"issue":{"href":"https://api.github.com/repos/codegangsta/cli/issues/286"},"comments":{"href":"https://api.github.com/repos/codegangsta/cli/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/codegangsta/cli/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/codegangsta/cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codegangsta/cli/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/codegangsta/cli/statuses/732e97aee8f2fd38b1ff346354d81bdfb5e1a5ad"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":2}}