8000 Minor simplifications · symfony/symfony-docs@d3f254d · GitHub
[go: up one dir, main page]

Skip to content

Commit d3f254d

Browse files
committed
Minor simplifications
1 parent 1aad365 commit d3f254d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

console/input.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ Options with optional arguments
222222
-------------------------------
223223

224224
There is nothing forbidding you to create a command with an option that
225-
optionally accepts a value, but it's a bit tricky. Let's use this
226-
option definition as an example::
225+
optionally accepts a value, but it's a bit tricky. Consider this example::
227226

228227
// ...
229228
use Symfony\Component\Console\Input\InputOption;
@@ -256,8 +255,7 @@ To solve this issue, you have to set the option's default value to ``false``::
256255
false // this is the new default value, instead of null
257256
);
258257

259-
And then you just have to check carefully the value of the option, minding that
260-
``false !== null``::
258+
Now check the value of the option and keep in mind that ``false !== null``::
261259

262260
$optionValue = $input->getOptions('yell');
263261
$yell = ($optionValue !== false);

0 commit comments

Comments
 (0)
0