8000 Update usage example in ArrayInput doc block. · symfony/symfony@0c8d311 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c8d311

Browse files
committed
Update usage example in ArrayInput doc block.
Make the ArrayInput doc block example more self-explanatory and less misleading. Show the common use case of having `command`, and replace the confusing `name` argument with something more arbitrary.
1 parent 47d26f6 commit 0c8d311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Input/ArrayInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* Usage:
2121
*
22-
* $input = new ArrayInput(['name' => 'foo', '--bar' => 'foobar']);
22+
* $input = new ArrayInput(['command' => 'foo:bar', 'foo' => 'bar', '--bar' => 'foobar']);
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
2525
*/

0 commit comments

Comments
 (0)
0