@@ -141,8 +141,7 @@ and make the ``name`` argument required::
141
141
$this
142
142
// ...
143
143
->addArgument('name', InputArgument::REQUIRED, 'Who do you want to greet?')
144
- ->addArgument('last_name', InputArgument::OPTIONAL, 'Your last name?')
145
- // ...
144
+ ->addArgument('last_name', InputArgument::OPTIONAL, 'Your last name?');
146
145
147
146
You now have access to a ``last_name `` argument in your command::
148
147
@@ -178,7 +177,7 @@ how many times in a row the message should be printed::
178
177
179
178
$this
180
179
// ...
181
- ->addOption('iterations', null, InputOption::VALUE_REQUIRED, 'How many times should the message be printed?', 1)
180
+ ->addOption('iterations', null, InputOption::VALUE_REQUIRED, 'How many times should the message be printed?', 1);
182
181
183
182
Next, use this in the command to print the message multiple times:
184
183
@@ -226,7 +225,7 @@ You can combine VALUE_IS_ARRAY with VALUE_REQUIRED or VALUE_OPTIONAL like this:
226
225
227
226
$this
228
227
// ...
229
- ->addOption('iterations', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'How many times should the message be printed?', 1)
228
+ ->addOption('iterations', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'How many times should the message be printed?', 1);
230
229
231
230
Asking the User for Information
232
231
-------------------------------
@@ -294,8 +293,7 @@ method::
294
293
295
294
class ListCommandTest extends \PHPUnit_Framework_TestCase
296
295
{
297
-
298
- //--
296
+ // ...
299
297
300
298
public function testNameIsOutput()
301
299
{
0 commit comments