{"action":"closed","number":391,"pull_request":{"url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391","id":57226354,"html_url":"https://github.com/kbknapp/clap-rs/pull/391","diff_url":"https://github.com/kbknapp/clap-rs/pull/391.diff","patch_url":"https://github.com/kbknapp/clap-rs/pull/391.patch","issue_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/391","number":391,"state":"closed","locked":false,"title":"Issue 372","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"body":"```rust\r\nextern crate clap;\r\nuse clap::{App, AppSettings};\r\n\r\nfn main() {\r\n    // Assume there is a third party subcommand named myprog-subcmd\r\n    let m = App::new(\"myprog\")\r\n        .setting(AppSettings::AllowExternalSubcommands)\r\n        .get_matches_from(vec![\r\n            \"myprog\", \"subcmd\", \"--option\", \"value\", \"-fff\", \"--flag\"\r\n        ]);\r\n    // All trailing arguments will be stored under the subcommands sub-matches under a\r\n    // value of their runtime name (in this case \"subcmd\")\r\n    match m.subcommand() {\r\n        (external, Some(ext_m)) => {\r\n            let ext_args: Vec<&str> = ext_m.values_of(external).unwrap().collect();\r\n            assert_eq!(ext_args ,[\"--option\", \"value\", \"-fff\", \"--flag\"]);\r\n        },\r\n        _ => unreachable!()\r\n   }\r\n}\r\n```","created_at":"2016-01-26T15:35:13Z","updated_at":"2016-01-26T16:52:37Z","closed_at":"2016-01-26T16:52:37Z","merged_at":"2016-01-26T16:52:37Z","merge_commit_sha":"2e57c02ae4bcc8b110cd4a002823304b86bc7162","assignee":{"login":"Vinatorul","id":6770624,"avatar_url":"https://avatars.githubusercontent.com/u/6770624?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinatorul","html_url":"https://github.com/Vinatorul","followers_url":"https://api.github.com/users/Vinatorul/followers","following_url":"https://api.github.com/users/Vinatorul/following{/other_user}","gists_url":"https://api.github.com/users/Vinatorul/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinatorul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinatorul/subscriptions","organizations_url":"https://api.github.com/users/Vinatorul/orgs","repos_url":"https://api.github.com/users/Vinatorul/repos","events_url":"https://api.github.com/users/Vinatorul/events{/privacy}","received_events_url":"https://api.github.com/users/Vinatorul/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391/commits","review_comments_url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391/comments","review_comment_url":"https://api.github.com/repos/kbknapp/clap-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/391/comments","statuses_url":"https://api.github.com/repos/kbknapp/clap-rs/statuses/6245bb1c6f288cfa738d1d3b8f8ae78425c26da8","head":{"label":"kbknapp:issue-372","ref":"issue-372","sha":"6245bb1c6f288cfa738d1d3b8f8ae78425c26da8","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"repo":{"id":31315121,"name":"clap-rs","full_name":"kbknapp/clap-rs","owner":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbknapp/clap-rs","description":"A full featured, fast Command Line Argument Parser for Rust","fork":false,"url":"https://api.github.com/repos/kbknapp/clap-rs","forks_url":"https://api.github.com/repos/kbknapp/clap-rs/forks","keys_url":"https://api.github.com/repos/kbknapp/clap-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbknapp/clap-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbknapp/clap-rs/teams","hooks_url":"https://api.github.com/repos/kbknapp/clap-rs/hooks","issue_events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/events{/number}","events_url":"https://api.github.com/repos/kbknapp/clap-rs/events","assignees_url":"https://api.github.com/repos/kbknapp/clap-rs/assignees{/user}","branches_url":"https://api.github.com/repos/kbknapp/clap-rs/branches{/branch}","tags_url":"https://api.github.com/repos/kbknapp/clap-rs/tags","blobs_url":"https://api.github.com/repos/kbknapp/clap-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbknapp/clap-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbknapp/clap-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbknapp/clap-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbknapp/clap-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/kbknapp/clap-rs/languages","stargazers_url":"https://api.github.com/repos/kbknapp/clap-rs/stargazers","contributors_url":"https://api.github.com/repos/kbknapp/clap-rs/contributors","subscribers_url":"https://api.github.com/repos/kbknapp/clap-rs/subscribers","subscription_url":"https://api.github.com/repos/kbknapp/clap-rs/subscription","commits_url":"https://api.github.com/repos/kbknapp/clap-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbknapp/clap-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbknapp/clap-rs/contents/{+path}","compare_url":"https://api.github.com/repos/kbknapp/clap-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbknapp/clap-rs/merges","archive_url":"https://api.github.com/repos/kbknapp/clap-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbknapp/clap-rs/downloads","issues_url":"https://api.github.com/repos/kbknapp/clap-rs/issues{/number}","pulls_url":"https://api.github.com/repos/kbknapp/clap-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/kbknapp/clap-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/kbknapp/clap-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/labels{/name}","releases_url":"https://api.github.com/repos/kbknapp/clap-rs/releases{/id}","deployments_url":"https://api.github.com/repos/kbknapp/clap-rs/deployments","created_at":"2015-02-25T13:36:33Z","updated_at":"2016-01-25T18:55:57Z","pushed_at":"2016-01-26T16:52:37Z","git_url":"git://github.com/kbknapp/clap-rs.git","ssh_url":"git@github.com:kbknapp/clap-rs.git","clone_url":"https://github.com/kbknapp/clap-rs.git","svn_url":"https://github.com/kbknapp/clap-rs","homepage":"","size":3627,"stargazers_count":343,"watchers_count":343,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":26,"forks":27,"open_issues":26,"watchers":343,"default_branch":"master"}},"base":{"label":"kbknapp:v2-master","ref":"v2-master","sha":"3e492803a15501043b86af2b27d0d9e55b6eba92","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"repo":{"id":31315121,"name":"clap-rs","full_name":"kbknapp/clap-rs","owner":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbknapp/clap-rs","description":"A full featured, fast Command Line Argument Parser for Rust","fork":false,"url":"https://api.github.com/repos/kbknapp/clap-rs","forks_url":"https://api.github.com/repos/kbknapp/clap-rs/forks","keys_url":"https://api.github.com/repos/kbknapp/clap-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbknapp/clap-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbknapp/clap-rs/teams","hooks_url":"https://api.github.com/repos/kbknapp/clap-rs/hooks","issue_events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/events{/number}","events_url":"https://api.github.com/repos/kbknapp/clap-rs/events","assignees_url":"https://api.github.com/repos/kbknapp/clap-rs/assignees{/user}","branches_url":"https://api.github.com/repos/kbknapp/clap-rs/branches{/branch}","tags_url":"https://api.github.com/repos/kbknapp/clap-rs/tags","blobs_url":"https://api.github.com/repos/kbknapp/clap-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbknapp/clap-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbknapp/clap-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbknapp/clap-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbknapp/clap-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/kbknapp/clap-rs/languages","stargazers_url":"https://api.github.com/repos/kbknapp/clap-rs/stargazers","contributors_url":"https://api.github.com/repos/kbknapp/clap-rs/contributors","subscribers_url":"https://api.github.com/repos/kbknapp/clap-rs/subscribers","subscription_url":"https://api.github.com/repos/kbknapp/clap-rs/subscription","commits_url":"https://api.github.com/repos/kbknapp/clap-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbknapp/clap-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbknapp/clap-rs/contents/{+path}","compare_url":"https://api.github.com/repos/kbknapp/clap-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbknapp/clap-rs/merges","archive_url":"https://api.github.com/repos/kbknapp/clap-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbknapp/clap-rs/downloads","issues_url":"https://api.github.com/repos/kbknapp/clap-rs/issues{/number}","pulls_url":"https://api.github.com/repos/kbknapp/clap-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/kbknapp/clap-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/kbknapp/clap-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/labels{/name}","releases_url":"https://api.github.com/repos/kbknapp/clap-rs/releases{/id}","deployments_url":"https://api.github.com/repos/kbknapp/clap-rs/deployments","created_at":"2015-02-25T13:36:33Z","updated_at":"2016-01-25T18:55:57Z","pushed_at":"2016-01-26T16:52:37Z","git_url":"git://github.com/kbknapp/clap-rs.git","ssh_url":"git@github.com:kbknapp/clap-rs.git","clone_url":"https://github.com/kbknapp/clap-rs.git","svn_url":"https://github.com/kbknapp/clap-rs","homepage":"","size":3627,"stargazers_count":343,"watchers_count":343,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":26,"forks":27,"open_issues":26,"watchers":343,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391"},"html":{"href":"https://github.com/kbknapp/clap-rs/pull/391"},"issue":{"href":"https://api.github.com/repos/kbknapp/clap-rs/issues/391"},"comments":{"href":"https://api.github.com/repos/kbknapp/clap-rs/issues/391/comments"},"review_comments":{"href":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391/comments"},"review_comment":{"href":"https://api.github.com/repos/kbknapp/clap-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kbknapp/clap-rs/pulls/391/commits"},"statuses":{"href":"https://api.github.com/repos/kbknapp/clap-rs/statuses/6245bb1c6f288cfa738d1d3b8f8ae78425c26da8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":2,"additions":56,"deletions":118,"changed_files":3}}