Skip to content

Commit 3682e6b

Browse files
committed
minor #6987 Update input.rst (adyassine)
This PR was merged into the 3.1 branch. Discussion ---------- Update input.rst Commits ------- 8645262 Update input.rst
2 parents 7bc40da + 8645262 commit 3682e6b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

console/input.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ The command can now be used in either of the following ways:
5454

5555
.. code-block:: bash
5656
57-
$ php app/console app:greet Fabien
57+
$ php bin/console app:greet Fabien
5858
Hi Fabien!
5959
60-
$ php app/console app:greet Fabien Potencier
60+
$ php bin/console app:greet Fabien Potencier
6161
Hi Fabien Potencier!
6262
6363
It is also possible to let an argument take a list of values (imagine you want
@@ -75,7 +75,7 @@ To use this, just specify as many names as you want:
7575

7676
.. code-block:: bash
7777
78-
$ php app/console app:greet Fabien Ryan Bernhard
78+
$ php bin/console app:greet Fabien Ryan Bernhard
7979
8080
You can access the ``names`` argument as an array::
8181

@@ -140,20 +140,20 @@ flag:
140140
.. code-block:: bash
141141
142142
# no --iterations provided, the default (1) is used
143-
$ php app/console app:greet Fabien
143+
$ php bin/console app:greet Fabien
144144
Hi Fabien!
145145
146-
$ php app/console app:greet Fabien --iterations=5
146+
$ php bin/console app:greet Fabien --iterations=5
147147
Hi Fabien
148148
Hi Fabien
149149
Hi Fabien
150150
Hi Fabien
151151
Hi Fabien
152152
153153
# the order of options isn't important
154-
$ php app/console app:greet Fabien --iterations=5 --yell
155-
$ php app/console app:greet Fabien --yell --iterations=5
156-
$ php app/console app:greet --yell --iterations=5 Fabien
154+
$ php bin/console app:greet Fabien --iterations=5 --yell
155+
$ php bin/console app:greet Fabien --yell --iterations=5
156+
$ php bin/console app:greet --yell --iterations=5 Fabien
157157
158158
.. tip::
159159

0 commit comments

Comments
 (0)