Skip to content

Commit

Permalink
minor #6987 Update input.rst (adyassine)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.1 branch.

Discussion
----------

Update input.rst

Commits
-------

8645262 Update input.rst
  • Loading branch information
xabbuh committed Sep 21, 2016
2 parents 7bc40da + 8645262 commit 3682e6b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions console/input.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ The command can now be used in either of the following ways:

.. code-block:: bash
$ php app/console app:greet Fabien
$ php bin/console app:greet Fabien
Hi Fabien!
$ php app/console app:greet Fabien Potencier
$ php bin/console app:greet Fabien Potencier
Hi Fabien Potencier!
It is also possible to let an argument take a list of values (imagine you want
Expand All @@ -75,7 +75,7 @@ To use this, just specify as many names as you want:

.. code-block:: bash
$ php app/console app:greet Fabien Ryan Bernhard
$ php bin/console app:greet Fabien Ryan Bernhard
You can access the ``names`` argument as an array::

Expand Down Expand Up @@ -140,20 +140,20 @@ flag:
.. code-block:: bash
# no --iterations provided, the default (1) is used
$ php app/console app:greet Fabien
$ php bin/console app:greet Fabien
Hi Fabien!
$ php app/console app:greet Fabien --iterations=5
$ php bin/console app:greet Fabien --iterations=5
Hi Fabien
Hi Fabien
Hi Fabien
Hi Fabien
Hi Fabien
# the order of options isn't important
$ php app/console app:greet Fabien --iterations=5 --yell
$ php app/console app:greet Fabien --yell --iterations=5
$ php app/console app:greet --yell --iterations=5 Fabien
$ php bin/console app:greet Fabien --iterations=5 --yell
$ php bin/console app:greet Fabien --yell --iterations=5
$ php bin/console app:greet --yell --iterations=5 Fabien
.. tip::

Expand Down

0 comments on commit 3682e6b

Please sign in to comment.