{"action":"opened","number":345,"pull_request":{"url":"https://api.github.com/repos/tj/commander.js/pulls/345","id":28928193,"html_url":"https://github.com/tj/commander.js/pull/345","diff_url":"https://github.com/tj/commander.js/pull/345.diff","patch_url":"https://github.com/tj/commander.js/pull/345.patch","issue_url":"https://api.github.com/repos/tj/commander.js/issues/345","number":345,"state":"open","locked":false,"title":"Add support for optional boolean flag","user":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"body":"This seems to fix the use-case described in https://github.com/tj/commander.js/issues/344 and should not really break any existing code, since it is based on the existence of `boolean` in the flags.\r\nNow that I am saying that, checking for `<boolean>` and `[boolean]` might be better.\r\n\r\nAlso don't know if that ever was the intended use, but it seems quite intuitive to me and would be really useful.","created_at":"2015-02-09T15:17:17Z","updated_at":"2015-02-09T15:17:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tj/commander.js/pulls/345/commits","review_comments_url":"https://api.github.com/repos/tj/commander.js/pulls/345/comments","review_comment_url":"https://api.github.com/repos/tj/commander.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tj/commander.js/issues/345/comments","statuses_url":"https://api.github.com/repos/tj/commander.js/statuses/c4fee5b6621eb8a61a40cdda9c557c1e4c8da466","head":{"label":"Globegitter:patch-1","ref":"patch-1","sha":"c4fee5b6621eb8a61a40cdda9c557c1e4c8da466","user":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"repo":{"id":30541824,"name":"commander.js","full_name":"Globegitter/commander.js","owner":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Globegitter/commander.js","description":"node.js command-line interfaces made easy","fork":true,"url":"https://api.github.com/repos/Globegitter/commander.js","forks_url":"https://api.github.com/repos/Globegitter/commander.js/forks","keys_url":"https://api.github.com/repos/Globegitter/commander.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Globegitter/commander.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Globegitter/commander.js/teams","hooks_url":"https://api.github.com/repos/Globegitter/commander.js/hooks","issue_events_url":"https://api.github.com/repos/Globegitter/commander.js/issues/events{/number}","events_url":"https://api.github.com/repos/Globegitter/commander.js/events","assignees_url":"https://api.github.com/repos/Globegitter/commander.js/assignees{/user}","branches_url":"https://api.github.com/repos/Globegitter/commander.js/branches{/branch}","tags_url":"https://api.github.com/repos/Globegitter/commander.js/tags","blobs_url":"https://api.github.com/repos/Globegitter/commander.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Globegitter/commander.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Globegitter/commander.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Globegitter/commander.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Globegitter/commander.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Globegitter/commander.js/languages","stargazers_url":"https://api.github.com/repos/Globegitter/commander.js/stargazers","contributors_url":"https://api.github.com/repos/Globegitter/commander.js/contributors","subscribers_url":"https://api.github.com/repos/Globegitter/commander.js/subscribers","subscription_url":"https://api.github.com/repos/Globegitter/commander.js/subscription","commits_url":"https://api.github.com/repos/Globegitter/commander.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Globegitter/commander.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Globegitter/commander.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Globegitter/commander.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/Globegitter/commander.js/contents/{+path}","compare_url":"https://api.github.com/repos/Globegitter/commander.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Globegitter/commander.js/merges","archive_url":"https://api.github.com/repos/Globegitter/commander.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Globegitter/commander.js/downloads","issues_url":"https://api.github.com/repos/Globegitter/commander.js/issues{/number}","pulls_url":"https://api.github.com/repos/Globegitter/commander.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Globegitter/commander.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Globegitter/commander.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Globegitter/commander.js/labels{/name}","releases_url":"https://api.github.com/repos/Globegitter/commander.js/releases{/id}","created_at":"2015-02-09T15:14:30Z","updated_at":"2015-02-09T15:14:31Z","pushed_at":"2015-02-09T15:15:32Z","git_url":"git://github.com/Globegitter/commander.js.git","ssh_url":"git@github.com:Globegitter/commander.js.git","clone_url":"https://github.com/Globegitter/commander.js.git","svn_url":"https://github.com/Globegitter/commander.js","homepage":"","size":1700,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tj:master","ref":"master","sha":"6135fbcdf35083d3015f5e47a900f53e764fc601","user":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"repo":{"id":2206953,"name":"commander.js","full_name":"tj/commander.js","owner":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tj/commander.js","description":"node.js command-line interfaces made easy","fork":false,"url":"https://api.github.com/repos/tj/commander.js","forks_url":"https://api.github.com/repos/tj/commander.js/forks","keys_url":"https://api.github.com/repos/tj/commander.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tj/commander.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tj/commander.js/teams","hooks_url":"https://api.github.com/repos/tj/commander.js/hooks","issue_events_url":"https://api.github.com/repos/tj/commander.js/issues/events{/number}","events_url":"https://api.github.com/repos/tj/commander.js/events","assignees_url":"https://api.github.com/repos/tj/commander.js/assignees{/user}","branches_url":"https://api.github.com/repos/tj/commander.js/branches{/branch}","tags_url":"https://api.github.com/repos/tj/commander.js/tags","blobs_url":"https://api.github.com/repos/tj/commander.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tj/commander.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tj/commander.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/tj/commander.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tj/commander.js/statuses/{sha}","languages_url":"https://api.github.com/repos/tj/commander.js/languages","stargazers_url":"https://api.github.com/repos/tj/commander.js/stargazers","contributors_url":"https://api.github.com/repos/tj/commander.js/contributors","subscribers_url":"https://api.github.com/repos/tj/commander.js/subscribers","subscription_url":"https://api.github.com/repos/tj/commander.js/subscription","commits_url":"https://api.github.com/repos/tj/commander.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/tj/commander.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/tj/commander.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/tj/commander.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/tj/commander.js/contents/{+path}","compare_url":"https://api.github.com/repos/tj/commander.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tj/commander.js/merges","archive_url":"https://api.github.com/repos/tj/commander.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tj/commander.js/downloads","issues_url":"https://api.github.com/repos/tj/commander.js/issues{/number}","pulls_url":"https://api.github.com/repos/tj/commander.js/pulls{/number}","milestones_url":"https://api.github.com/repos/tj/commander.js/milestones{/number}","notifications_url":"https://api.github.com/repos/tj/commander.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tj/commander.js/labels{/name}","releases_url":"https://api.github.com/repos/tj/commander.js/releases{/id}","created_at":"2011-08-14T21:33:58Z","updated_at":"2015-02-09T13:13:59Z","pushed_at":"2015-02-08T05:55:16Z","git_url":"git://github.com/tj/commander.js.git","ssh_url":"git@github.com:tj/commander.js.git","clone_url":"https://github.com/tj/commander.js.git","svn_url":"https://github.com/tj/commander.js","homepage":"","size":1700,"stargazers_count":3325,"watchers_count":3325,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":310,"mirror_url":null,"open_issues_count":78,"forks":310,"open_issues":78,"watchers":3325,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tj/commander.js/pulls/345"},"html":{"href":"https://github.com/tj/commander.js/pull/345"},"issue":{"href":"https://api.github.com/repos/tj/commander.js/issues/345"},"comments":{"href":"https://api.github.com/repos/tj/commander.js/issues/345/comments"},"review_comments":{"href":"https://api.github.com/repos/tj/commander.js/pulls/345/comments"},"review_comment":{"href":"https://api.github.com/repos/tj/commander.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tj/commander.js/pulls/345/commits"},"statuses":{"href":"https://api.github.com/repos/tj/commander.js/statuses/c4fee5b6621eb8a61a40cdda9c557c1e4c8da466"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}