Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update input.rst #6987

Merged
merged 1 commit into from
Sep 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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