{"action":"closed","number":127,"pull_request":{"url":"https://api.github.com/repos/spf13/cobra/pulls/127","id":42555761,"html_url":"https://github.com/spf13/cobra/pull/127","diff_url":"https://github.com/spf13/cobra/pull/127.diff","patch_url":"https://github.com/spf13/cobra/pull/127.patch","issue_url":"https://api.github.com/repos/spf13/cobra/issues/127","number":127,"state":"closed","locked":false,"title":"Display pflag.CommandLine flags as if they were declared on the parent","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},"body":"```go\r\npackage main\r\n\r\nimport (\r\n\t\"github.com/spf13/cobra\"\r\n\t\"github.com/spf13/pflag\"\r\n)\r\n\r\nfunc main() {\r\n\tcmd := &cobra.Command{\r\n\t\tUse:   \"min\",\r\n\t\tShort: \"minimal command\",\r\n\t\tRun:   func(_ *cobra.Command, _ []string) {},\r\n\t}\r\n\r\n\tpflag.String(\"oncmdline\", \"oncmdline\", \"oncmdline\")\r\n\tcmd.Execute()\r\n}\r\n```\r\n\r\nIs a minimal cobra program.  When --help is displayed without this patch you get no indication the \"oncmdline\" is a valid flag. But it does work. With the patch --oncmdline is shows under flags.","created_at":"2015-08-17T05:42:05Z","updated_at":"2015-08-17T05:42:28Z","closed_at":"2015-08-17T05:42:27Z","merged_at":"2015-08-17T05:42:27Z","merge_commit_sha":"426ba8cbff2a5876333d23911ca611dc9f080c6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spf13/cobra/pulls/127/commits","review_comments_url":"https://api.github.com/repos/spf13/cobra/pulls/127/comments","review_comment_url":"https://api.github.com/repos/spf13/cobra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spf13/cobra/issues/127/comments","statuses_url":"https://api.github.com/repos/spf13/cobra/statuses/e8bd799c1c06ecd2aebd7a5ec67173a34ddf0f0d","head":{"label":"eparis:show-commandline-on-parent","ref":"show-commandline-on-parent","sha":"e8bd799c1c06ecd2aebd7a5ec67173a34ddf0f0d","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},"repo":{"id":30782925,"name":"cobra","full_name":"eparis/cobra","owner":{"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},"private":false,"html_url":"https://github.com/eparis/cobra","description":"A Commander for modern Go CLI interactions","fork":true,"url":"https://api.github.com/repos/eparis/cobra","forks_url":"https://api.github.com/repos/eparis/cobra/forks","keys_url":"https://api.github.com/repos/eparis/cobra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eparis/cobra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eparis/cobra/teams","hooks_url":"https://api.github.com/repos/eparis/cobra/hooks","issue_events_url":"https://api.github.com/repos/eparis/cobra/issues/events{/number}","events_url":"https://api.github.com/repos/eparis/cobra/events","assignees_url":"https://api.github.com/repos/eparis/cobra/assignees{/user}","branches_url":"https://api.github.com/repos/eparis/cobra/branches{/branch}","tags_url":"https://api.github.com/repos/eparis/cobra/tags","blobs_url":"https://api.github.com/repos/eparis/cobra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eparis/cobra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eparis/cobra/git/refs{/sha}","trees_url":"https://api.github.com/repos/eparis/cobra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eparis/cobra/statuses/{sha}","languages_url":"https://api.github.com/repos/eparis/cobra/languages","stargazers_url":"https://api.github.com/repos/eparis/cobra/stargazers","contributors_url":"https://api.github.com/repos/eparis/cobra/contributors","subscribers_url":"https://api.github.com/repos/eparis/cobra/subscribers","subscription_url":"https://api.github.com/repos/eparis/cobra/subscription","commits_url":"https://api.github.com/repos/eparis/cobra/commits{/sha}","git_commits_url":"https://api.github.com/repos/eparis/cobra/git/commits{/sha}","comments_url":"https://api.github.com/repos/eparis/cobra/comments{/number}","issue_comment_url":"https://api.github.com/repos/eparis/cobra/issues/comments{/number}","contents_url":"https://api.github.com/repos/eparis/cobra/contents/{+path}","compare_url":"https://api.github.com/repos/eparis/cobra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eparis/cobra/merges","archive_url":"https://api.github.com/repos/eparis/cobra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eparis/cobra/downloads","issues_url":"https://api.github.com/repos/eparis/cobra/issues{/number}","pulls_url":"https://api.github.com/repos/eparis/cobra/pulls{/number}","milestones_url":"https://api.github.com/repos/eparis/cobra/milestones{/number}","notifications_url":"https://api.github.com/repos/eparis/cobra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eparis/cobra/labels{/name}","releases_url":"https://api.github.com/repos/eparis/cobra/releases{/id}","created_at":"2015-02-14T01:01:44Z","updated_at":"2015-05-05T03:57:57Z","pushed_at":"2015-08-17T05:41:12Z","git_url":"git://github.com/eparis/cobra.git","ssh_url":"git@github.com:eparis/cobra.git","clone_url":"https://github.com/eparis/cobra.git","svn_url":"https://github.com/eparis/cobra","homepage":"","size":436,"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":"spf13:master","ref":"master","sha":"c55cdf33856a08e4822738728b41783292812889","user":{"login":"spf13","id":173412,"avatar_url":"https://avatars.githubusercontent.com/u/173412?v=3","gravatar_id":"","url":"https://api.github.com/users/spf13","html_url":"https://github.com/spf13","followers_url":"https://api.github.com/users/spf13/followers","following_url":"https://api.github.com/users/spf13/following{/other_user}","gists_url":"https://api.github.com/users/spf13/gists{/gist_id}","starred_url":"https://api.github.com/users/spf13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spf13/subscriptions","organizations_url":"https://api.github.com/users/spf13/orgs","repos_url":"https://api.github.com/users/spf13/repos","events_url":"https://api.github.com/users/spf13/events{/privacy}","received_events_url":"https://api.github.com/users/spf13/received_events","type":"User","site_admin":false},"repo":{"id":12574344,"name":"cobra","full_name":"spf13/cobra","owner":{"login":"spf13","id":173412,"avatar_url":"https://avatars.githubusercontent.com/u/173412?v=3","gravatar_id":"","url":"https://api.github.com/users/spf13","html_url":"https://github.com/spf13","followers_url":"https://api.github.com/users/spf13/followers","following_url":"https://api.github.com/users/spf13/following{/other_user}","gists_url":"https://api.github.com/users/spf13/gists{/gist_id}","starred_url":"https://api.github.com/users/spf13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spf13/subscriptions","organizations_url":"https://api.github.com/users/spf13/orgs","repos_url":"https://api.github.com/users/spf13/repos","events_url":"https://api.github.com/users/spf13/events{/privacy}","received_events_url":"https://api.github.com/users/spf13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spf13/cobra","description":"A Commander for modern Go CLI interactions","fork":false,"url":"https://api.github.com/repos/spf13/cobra","forks_url":"https://api.github.com/repos/spf13/cobra/forks","keys_url":"https://api.github.com/repos/spf13/cobra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spf13/cobra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spf13/cobra/teams","hooks_url":"https://api.github.com/repos/spf13/cobra/hooks","issue_events_url":"https://api.github.com/repos/spf13/cobra/issues/events{/number}","events_url":"https://api.github.com/repos/spf13/cobra/events","assignees_url":"https://api.github.com/repos/spf13/cobra/assignees{/user}","branches_url":"https://api.github.com/repos/spf13/cobra/branches{/branch}","tags_url":"https://api.github.com/repos/spf13/cobra/tags","blobs_url":"https://api.github.com/repos/spf13/cobra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spf13/cobra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spf13/cobra/git/refs{/sha}","trees_url":"https://api.github.com/repos/spf13/cobra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spf13/cobra/statuses/{sha}","languages_url":"https://api.github.com/repos/spf13/cobra/languages","stargazers_url":"https://api.github.com/repos/spf13/cobra/stargazers","contributors_url":"https://api.github.com/repos/spf13/cobra/contributors","subscribers_url":"https://api.github.com/repos/spf13/cobra/subscribers","subscription_url":"https://api.github.com/repos/spf13/cobra/subscription","commits_url":"https://api.github.com/repos/spf13/cobra/commits{/sha}","git_commits_url":"https://api.github.com/repos/spf13/cobra/git/commits{/sha}","comments_url":"https://api.github.com/repos/spf13/cobra/comments{/number}","issue_comment_url":"https://api.github.com/repos/spf13/cobra/issues/comments{/number}","contents_url":"https://api.github.com/repos/spf13/cobra/contents/{+path}","compare_url":"https://api.github.com/repos/spf13/cobra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spf13/cobra/merges","archive_url":"https://api.github.com/repos/spf13/cobra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spf13/cobra/downloads","issues_url":"https://api.github.com/repos/spf13/cobra/issues{/number}","pulls_url":"https://api.github.com/repos/spf13/cobra/pulls{/number}","milestones_url":"https://api.github.com/repos/spf13/cobra/milestones{/number}","notifications_url":"https://api.github.com/repos/spf13/cobra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spf13/cobra/labels{/name}","releases_url":"https://api.github.com/repos/spf13/cobra/releases{/id}","created_at":"2013-09-03T20:40:26Z","updated_at":"2015-08-15T09:43:23Z","pushed_at":"2015-08-17T05:42:28Z","git_url":"git://github.com/spf13/cobra.git","ssh_url":"git@github.com:spf13/cobra.git","clone_url":"https://github.com/spf13/cobra.git","svn_url":"https://github.com/spf13/cobra","homepage":"","size":1041,"stargazers_count":1060,"watchers_count":1060,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":17,"forks":94,"open_issues":17,"watchers":1060,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spf13/cobra/pulls/127"},"html":{"href":"https://github.com/spf13/cobra/pull/127"},"issue":{"href":"https://api.github.com/repos/spf13/cobra/issues/127"},"comments":{"href":"https://api.github.com/repos/spf13/cobra/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/spf13/cobra/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/spf13/cobra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spf13/cobra/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/spf13/cobra/statuses/e8bd799c1c06ecd2aebd7a5ec67173a34ddf0f0d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":1,"changed_files":2}}