{"action":"created","comment":{"url":"https://api.github.com/repos/symfony/symfony/pulls/comments/39601779","id":39601779,"diff_hunk":"@@ -241,6 +241,10 @@ public function run(InputInterface $input, OutputInterface $output)\n             $this->interact($input, $output);\n         }\n \n+        if ($input->hasArgument('command') && null === $input->getArgument('command')) {\n+            $input->setArgument('command', $this->getName());","path":"src/Symfony/Component/Console/Command/Command.php","position":null,"original_position":5,"commit_id":"f2145bdbb58b0c9ddd3a36fe41e9f838014dadef","original_commit_id":"926129d0442196c1d0f1d80986032113949a99d3","user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"body":"Writing this comment gave me another idea: is the command argument really a required argument? What if we made it optional instead of setting it here?","created_at":"2015-09-16T07:51:24Z","updated_at":"2015-09-16T07:51:24Z","html_url":"https://github.com/symfony/symfony/pull/15533#discussion_r39601779","pull_request_url":"https://api.github.com/repos/symfony/symfony/pulls/15533","_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments/39601779"},"html":{"href":"https://github.com/symfony/symfony/pull/15533#discussion_r39601779"},"pull_request":{"href":"https://api.github.com/repos/symfony/symfony/pulls/15533"}}},"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/15533","id":42323054,"html_url":"https://github.com/symfony/symfony/pull/15533","diff_url":"https://github.com/symfony/symfony/pull/15533.diff","patch_url":"https://github.com/symfony/symfony/pull/15533.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/15533","number":15533,"state":"open","locked":false,"title":"[Console] Fix input validation when required arguments are missing","user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | yes\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #15505\r\n| License       | MIT\r\n| Doc PR        | -\r\n\r\n\r\nThe rule that was here in place previously only works when arguments are passed from command line, as in command line there is no way of skipping an argument. The rule does not work for arguments set on the Input after a command is run.","created_at":"2015-08-13T07:46:16Z","updated_at":"2015-09-16T07:51:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc5b1de93a65ab3dd76491d23cfaf4ee60abb0ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/15533/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/15533/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15533/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/f2145bdbb58b0c9ddd3a36fe41e9f838014dadef","head":{"label":"jakzal:console/argument-validation-fix","ref":"console/argument-validation-fix","sha":"f2145bdbb58b0c9ddd3a36fe41e9f838014dadef","user":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"repo":{"id":1442800,"name":"symfony","full_name":"jakzal/symfony","owner":{"login":"jakzal","id":190447,"avatar_url":"https://avatars.githubusercontent.com/u/190447?v=3","gravatar_id":"","url":"https://api.github.com/users/jakzal","html_url":"https://github.com/jakzal","followers_url":"https://api.github.com/users/jakzal/followers","following_url":"https://api.github.com/users/jakzal/following{/other_user}","gists_url":"https://api.github.com/users/jakzal/gists{/gist_id}","starred_url":"https://api.github.com/users/jakzal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakzal/subscriptions","organizations_url":"https://api.github.com/users/jakzal/orgs","repos_url":"https://api.github.com/users/jakzal/repos","events_url":"https://api.github.com/users/jakzal/events{/privacy}","received_events_url":"https://api.github.com/users/jakzal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jakzal/symfony","description":"The Symfony PHP framework ","fork":true,"url":"https://api.github.com/repos/jakzal/symfony","forks_url":"https://api.github.com/repos/jakzal/symfony/forks","keys_url":"https://api.github.com/repos/jakzal/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jakzal/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jakzal/symfony/teams","hooks_url":"https://api.github.com/repos/jakzal/symfony/hooks","issue_events_url":"https://api.github.com/repos/jakzal/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/jakzal/symfony/events","assignees_url":"https://api.github.com/repos/jakzal/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/jakzal/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/jakzal/symfony/tags","blobs_url":"https://api.github.com/repos/jakzal/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jakzal/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jakzal/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/jakzal/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jakzal/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/jakzal/symfony/languages","stargazers_url":"https://api.github.com/repos/jakzal/symfony/stargazers","contributors_url":"https://api.github.com/repos/jakzal/symfony/contributors","subscribers_url":"https://api.github.com/repos/jakzal/symfony/subscribers","subscription_url":"https://api.github.com/repos/jakzal/symfony/subscription","commits_url":"https://api.github.com/repos/jakzal/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/jakzal/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/jakzal/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/jakzal/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/jakzal/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/jakzal/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jakzal/symfony/merges","archive_url":"https://api.github.com/repos/jakzal/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jakzal/symfony/downloads","issues_url":"https://api.github.com/repos/jakzal/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/jakzal/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/jakzal/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/jakzal/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jakzal/symfony/labels{/name}","releases_url":"https://api.github.com/repos/jakzal/symfony/releases{/id}","created_at":"2011-03-05T10:24:38Z","updated_at":"2015-03-26T16:49:32Z","pushed_at":"2015-09-16T07:50:43Z","git_url":"git://github.com/jakzal/symfony.git","ssh_url":"git@github.com:jakzal/symfony.git","clone_url":"https://github.com/jakzal/symfony.git","svn_url":"https://github.com/jakzal/symfony","homepage":"http://symfony.com","size":62162,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"symfony:2.3","ref":"2.3","sha":"150bcc9f6482f6a7e1c4014883b80f2bc63a7804","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","created_at":"2010-01-04T14:21:21Z","updated_at":"2015-09-16T07:40:30Z","pushed_at":"2015-09-16T07:50:54Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":241574,"stargazers_count":10785,"watchers_count":10785,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4250,"mirror_url":null,"open_issues_count":925,"forks":4250,"open_issues":925,"watchers":10785,"default_branch":"2.8"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/15533"},"html":{"href":"https://github.com/symfony/symfony/pull/15533"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/15533"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/15533/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/15533/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/15533/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/f2145bdbb58b0c9ddd3a36fe41e9f838014dadef"}}}}