{"action":"opened","number":271,"pull_request":{"url":"https://api.github.com/repos/bcoe/yargs/pulls/271","id":46424866,"html_url":"https://github.com/bcoe/yargs/pull/271","diff_url":"https://github.com/bcoe/yargs/pull/271.diff","patch_url":"https://github.com/bcoe/yargs/pull/271.patch","issue_url":"https://api.github.com/repos/bcoe/yargs/issues/271","number":271,"state":"open","locked":false,"title":"Don't validate arguments if help or version is used and exitProcess=false","user":{"login":"tepez","id":3265649,"avatar_url":"https://avatars.githubusercontent.com/u/3265649?v=3","gravatar_id":"","url":"https://api.github.com/users/tepez","html_url":"https://github.com/tepez","followers_url":"https://api.github.com/users/tepez/followers","following_url":"https://api.github.com/users/tepez/following{/other_user}","gists_url":"https://api.github.com/users/tepez/gists{/gist_id}","starred_url":"https://api.github.com/users/tepez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepez/subscriptions","organizations_url":"https://api.github.com/users/tepez/orgs","repos_url":"https://api.github.com/users/tepez/repos","events_url":"https://api.github.com/users/tepez/events{/privacy}","received_events_url":"https://api.github.com/users/tepez/received_events","type":"User","site_admin":false},"body":"Currently if `exitProcess=false` and the help or version options are given the arguments will be validated anyhow.\r\n\r\nI'd argue that this is never the desired behavior. For example, if there are required arguments then if the users enters `node . --help` he would get errors for every required arguments missing.\r\n\r\nThis PR fixes this.\r\n","created_at":"2015-09-30T16:29:19Z","updated_at":"2015-09-30T16:29:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bcoe/yargs/pulls/271/commits","review_comments_url":"https://api.github.com/repos/bcoe/yargs/pulls/271/comments","review_comment_url":"https://api.github.com/repos/bcoe/yargs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcoe/yargs/issues/271/comments","statuses_url":"https://api.github.com/repos/bcoe/yargs/statuses/281da729a1cfbbbae7a5f2d4daa41aa61231860a","head":{"label":"tepez:extiProcessAndHelp","ref":"extiProcessAndHelp","sha":"281da729a1cfbbbae7a5f2d4daa41aa61231860a","user":{"login":"tepez","id":3265649,"avatar_url":"https://avatars.githubusercontent.com/u/3265649?v=3","gravatar_id":"","url":"https://api.github.com/users/tepez","html_url":"https://github.com/tepez","followers_url":"https://api.github.com/users/tepez/followers","following_url":"https://api.github.com/users/tepez/following{/other_user}","gists_url":"https://api.github.com/users/tepez/gists{/gist_id}","starred_url":"https://api.github.com/users/tepez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepez/subscriptions","organizations_url":"https://api.github.com/users/tepez/orgs","repos_url":"https://api.github.com/users/tepez/repos","events_url":"https://api.github.com/users/tepez/events{/privacy}","received_events_url":"https://api.github.com/users/tepez/received_events","type":"User","site_admin":false},"repo":{"id":43421801,"name":"yargs","full_name":"tepez/yargs","owner":{"login":"tepez","id":3265649,"avatar_url":"https://avatars.githubusercontent.com/u/3265649?v=3","gravatar_id":"","url":"https://api.github.com/users/tepez","html_url":"https://github.com/tepez","followers_url":"https://api.github.com/users/tepez/followers","following_url":"https://api.github.com/users/tepez/following{/other_user}","gists_url":"https://api.github.com/users/tepez/gists{/gist_id}","starred_url":"https://api.github.com/users/tepez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tepez/subscriptions","organizations_url":"https://api.github.com/users/tepez/orgs","repos_url":"https://api.github.com/users/tepez/repos","events_url":"https://api.github.com/users/tepez/events{/privacy}","received_events_url":"https://api.github.com/users/tepez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tepez/yargs","description":" yargs the modern, pirate-themed successor to optimist.","fork":true,"url":"https://api.github.com/repos/tepez/yargs","forks_url":"https://api.github.com/repos/tepez/yargs/forks","keys_url":"https://api.github.com/repos/tepez/yargs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tepez/yargs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tepez/yargs/teams","hooks_url":"https://api.github.com/repos/tepez/yargs/hooks","issue_events_url":"https://api.github.com/repos/tepez/yargs/issues/events{/number}","events_url":"https://api.github.com/repos/tepez/yargs/events","assignees_url":"https://api.github.com/repos/tepez/yargs/assignees{/user}","branches_url":"https://api.github.com/repos/tepez/yargs/branches{/branch}","tags_url":"https://api.github.com/repos/tepez/yargs/tags","blobs_url":"https://api.github.com/repos/tepez/yargs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tepez/yargs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tepez/yargs/git/refs{/sha}","trees_url":"https://api.github.com/repos/tepez/yargs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tepez/yargs/statuses/{sha}","languages_url":"https://api.github.com/repos/tepez/yargs/languages","stargazers_url":"https://api.github.com/repos/tepez/yargs/stargazers","contributors_url":"https://api.github.com/repos/tepez/yargs/contributors","subscribers_url":"https://api.github.com/repos/tepez/yargs/subscribers","subscription_url":"https://api.github.com/repos/tepez/yargs/subscription","commits_url":"https://api.github.com/repos/tepez/yargs/commits{/sha}","git_commits_url":"https://api.github.com/repos/tepez/yargs/git/commits{/sha}","comments_url":"https://api.github.com/repos/tepez/yargs/comments{/number}","issue_comment_url":"https://api.github.com/repos/tepez/yargs/issues/comments{/number}","contents_url":"https://api.github.com/repos/tepez/yargs/contents/{+path}","compare_url":"https://api.github.com/repos/tepez/yargs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tepez/yargs/merges","archive_url":"https://api.github.com/repos/tepez/yargs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tepez/yargs/downloads","issues_url":"https://api.github.com/repos/tepez/yargs/issues{/number}","pulls_url":"https://api.github.com/repos/tepez/yargs/pulls{/number}","milestones_url":"https://api.github.com/repos/tepez/yargs/milestones{/number}","notifications_url":"https://api.github.com/repos/tepez/yargs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tepez/yargs/labels{/name}","releases_url":"https://api.github.com/repos/tepez/yargs/releases{/id}","created_at":"2015-09-30T08:40:01Z","updated_at":"2015-09-30T08:40:02Z","pushed_at":"2015-09-30T16:24:35Z","git_url":"git://github.com/tepez/yargs.git","ssh_url":"git@github.com:tepez/yargs.git","clone_url":"https://github.com/tepez/yargs.git","svn_url":"https://github.com/tepez/yargs","homepage":"https://www.npmjs.com/package/yargs","size":2325,"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":"bcoe:master","ref":"master","sha":"a79900a51360e5bc5b6af0e385aae2741ffc94c0","user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"repo":{"id":14210523,"name":"yargs","full_name":"bcoe/yargs","owner":{"login":"bcoe","id":194609,"avatar_url":"https://avatars.githubusercontent.com/u/194609?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcoe/yargs","description":" yargs the modern, pirate-themed successor to optimist.","fork":false,"url":"https://api.github.com/repos/bcoe/yargs","forks_url":"https://api.github.com/repos/bcoe/yargs/forks","keys_url":"https://api.github.com/repos/bcoe/yargs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcoe/yargs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcoe/yargs/teams","hooks_url":"https://api.github.com/repos/bcoe/yargs/hooks","issue_events_url":"https://api.github.com/repos/bcoe/yargs/issues/events{/number}","events_url":"https://api.github.com/repos/bcoe/yargs/events","assignees_url":"https://api.github.com/repos/bcoe/yargs/assignees{/user}","branches_url":"https://api.github.com/repos/bcoe/yargs/branches{/branch}","tags_url":"https://api.github.com/repos/bcoe/yargs/tags","blobs_url":"https://api.github.com/repos/bcoe/yargs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcoe/yargs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcoe/yargs/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcoe/yargs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcoe/yargs/statuses/{sha}","languages_url":"https://api.github.com/repos/bcoe/yargs/languages","stargazers_url":"https://api.github.com/repos/bcoe/yargs/stargazers","contributors_url":"https://api.github.com/repos/bcoe/yargs/contributors","subscribers_url":"https://api.github.com/repos/bcoe/yargs/subscribers","subscription_url":"https://api.github.com/repos/bcoe/yargs/subscription","commits_url":"https://api.github.com/repos/bcoe/yargs/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcoe/yargs/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcoe/yargs/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcoe/yargs/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcoe/yargs/contents/{+path}","compare_url":"https://api.github.com/repos/bcoe/yargs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcoe/yargs/merges","archive_url":"https://api.github.com/repos/bcoe/yargs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcoe/yargs/downloads","issues_url":"https://api.github.com/repos/bcoe/yargs/issues{/number}","pulls_url":"https://api.github.com/repos/bcoe/yargs/pulls{/number}","milestones_url":"https://api.github.com/repos/bcoe/yargs/milestones{/number}","notifications_url":"https://api.github.com/repos/bcoe/yargs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcoe/yargs/labels{/name}","releases_url":"https://api.github.com/repos/bcoe/yargs/releases{/id}","created_at":"2013-11-07T17:25:51Z","updated_at":"2015-09-30T14:11:39Z","pushed_at":"2015-09-30T09:31:13Z","git_url":"git://github.com/bcoe/yargs.git","ssh_url":"git@github.com:bcoe/yargs.git","clone_url":"https://github.com/bcoe/yargs.git","svn_url":"https://github.com/bcoe/yargs","homepage":"https://www.npmjs.com/package/yargs","size":2325,"stargazers_count":966,"watchers_count":966,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":27,"forks":61,"open_issues":27,"watchers":966,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bcoe/yargs/pulls/271"},"html":{"href":"https://github.com/bcoe/yargs/pull/271"},"issue":{"href":"https://api.github.com/repos/bcoe/yargs/issues/271"},"comments":{"href":"https://api.github.com/repos/bcoe/yargs/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/bcoe/yargs/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/bcoe/yargs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcoe/yargs/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/bcoe/yargs/statuses/281da729a1cfbbbae7a5f2d4daa41aa61231860a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":121,"deletions":12,"changed_files":2}}