Skip to content

Commit

Permalink
minor #4057 Update introduction.rst (carltondickson)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #4057).

Discussion
----------

Update introduction.rst

In my opinion a note or example needs to be added to the command test example to show that the option name needs to be prefixed with a double hyphen.

Admittedly there is a similar example of passing an option to a command at https://github.com/symfony/symfony-docs/blob/2.4/components/console/introduction.rst#calling-an-existing-command but this could easily be missed.

Commits
-------

ddbadc7 Update introduction.rst
  • Loading branch information
weaverryan committed Aug 15, 2014
2 parents 26141d6 + bcc60af commit 4cce133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/console/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ method::
$command = $application->find('demo:greet');
$commandTester = new CommandTester($command);
$commandTester->execute(
array('command' => $command->getName(), 'name' => 'Fabien')
array('command' => $command->getName(), 'name' => 'Fabien', '--iterations' => 5)
);

$this->assertRegExp('/Fabien/', $commandTester->getDisplay());
Expand Down

0 comments on commit 4cce133

Please sign in to comment.