Permalink
Browse files

minor #4057 Update introduction.rst (carltondickson)

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 4cce133b5b55fce7cafa26257e530838f587a814
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/console/introduction.rst
@@ -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());

0 comments on commit 4cce133

Please sign in to comment.