{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/9560","repository_url":"https://api.github.com/repos/symfony/symfony-docs","labels_url":"https://api.github.com/repos/symfony/symfony-docs/issues/9560/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-docs/issues/9560/comments","events_url":"https://api.github.com/repos/symfony/symfony-docs/issues/9560/events","html_url":"https://github.com/symfony/symfony-docs/pull/9560","id":311792131,"number":9560,"title":"Add 2 solutions for the 'option with optional argument' problem","user":{"login":"Jean85","id":6729988,"avatar_url":"https://avatars3.githubusercontent.com/u/6729988?v=4","gravatar_id":"","url":"https://api.github.com/users/Jean85","html_url":"https://github.com/Jean85","followers_url":"https://api.github.com/users/Jean85/followers","following_url":"https://api.github.com/users/Jean85/following{/other_user}","gists_url":"https://api.github.com/users/Jean85/gists{/gist_id}","starred_url":"https://api.github.com/users/Jean85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jean85/subscriptions","organizations_url":"https://api.github.com/users/Jean85/orgs","repos_url":"https://api.github.com/users/Jean85/repos","events_url":"https://api.github.com/users/Jean85/events{/privacy}","received_events_url":"https://api.github.com/users/Jean85/received_events","type":"User","site_admin":false},"labels":[{"id":32962723,"url":"https://api.github.com/repos/symfony/symfony-docs/labels/Console","name":"Console","color":"DDDDDD","default":false},{"id":122168046,"url":"https://api.github.com/repos/symfony/symfony-docs/labels/Status:%20Reviewed","name":"Status: Reviewed","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/symfony/symfony-docs/milestones/10","html_url":"https://github.com/symfony/symfony-docs/milestone/10","labels_url":"https://api.github.com/repos/symfony/symfony-docs/milestones/10/labels","id":1105130,"number":10,"title":"2.8","description":"","creator":{"login":"wouterj","id":749025,"avatar_url":"https://avatars2.githubusercontent.com/u/749025?v=4","gravatar_id":"","url":"https://api.github.com/users/wouterj","html_url":"https://github.com/wouterj","followers_url":"https://api.github.com/users/wouterj/followers","following_url":"https://api.github.com/users/wouterj/following{/other_user}","gists_url":"https://api.github.com/users/wouterj/gists{/gist_id}","starred_url":"https://api.github.com/users/wouterj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouterj/subscriptions","organizations_url":"https://api.github.com/users/wouterj/orgs","repos_url":"https://api.github.com/users/wouterj/repos","events_url":"https://api.github.com/users/wouterj/events{/privacy}","received_events_url":"https://api.github.com/users/wouterj/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":71,"state":"open","created_at":"2015-05-11T15:57:59Z","updated_at":"2018-05-27T11:12:18Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-04-05T22:34:44Z","updated_at":"2018-05-27T11:15:41Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/symfony/symfony-docs/pulls/9560","html_url":"https://github.com/symfony/symfony-docs/pull/9560","diff_url":"https://github.com/symfony/symfony-docs/pull/9560.diff","patch_url":"https://github.com/symfony/symfony-docs/pull/9560.patch"},"body":"While working on https://github.com/facile-it/paraunit/pull/121, I discovered a tricky case with the Console component: using an option with an optional argument seemed impossible! The doc said:\r\n\r\n> There is nothing forbidding you to create a command with an option that optionally accepts a value. However, there is no way you can distinguish when the option was used without a value (command --language) or when it wasn't used at all (command). In both cases, the value retrieved for the option will be null. \r\n\r\nThis is NOT TRUE. I've found two possible solutions to this issue (one myself, one in https://github.com/symfony/symfony/issues/11572#issuecomment-197929086) and this PR introduces them in the docs. I've also moved around the two tips/cautions which were at the end of the article, because with my reword it seemed nicer to me."},"comment":{"url":"https://api.github.com/repos/symfony/symfony-docs/issues/comments/392323134","html_url":"https://github.com/symfony/symfony-docs/pull/9560#issuecomment-392323134","issue_url":"https://api.github.com/repos/symfony/symfony-docs/issues/9560","id":392323134,"user":{"login":"javiereguiluz","id":73419,"avatar_url":"https://avatars3.githubusercontent.com/u/73419?v=4","gravatar_id":"","url":"https://api.github.com/users/javiereguiluz","html_url":"https://github.com/javiereguiluz","followers_url":"https://api.github.com/users/javiereguiluz/followers","following_url":"https://api.github.com/users/javiereguiluz/following{/other_user}","gists_url":"https://api.github.com/users/javiereguiluz/gists{/gist_id}","starred_url":"https://api.github.com/users/javiereguiluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javiereguiluz/subscriptions","organizations_url":"https://api.github.com/users/javiereguiluz/orgs","repos_url":"https://api.github.com/users/javiereguiluz/repos","events_url":"https://api.github.com/users/javiereguiluz/events{/privacy}","received_events_url":"https://api.github.com/users/javiereguiluz/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T11:15:40Z","updated_at":"2018-05-27T11:15:40Z","author_association":"MEMBER","body":"@Jean85 thanks for taking the time to improve the docs about this. It's an edge-case, but it's important to explain it well. I did some rewords to simplify some phrases and replace some advanced English words for other basic words (we need to do that to keep the docs approachable for people without an advanced English level). We merged it on 2.8 (the oldest maintained branch)"}}
{"actor":{"display_login":"javiereguiluz"}}