Skip to content

Commit d025b62

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: list shortcuts of global CLI options as well
2 parents 0284bcb + 3cef5c6 commit d025b62

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

console/input.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,16 @@ The Console component adds some predefined options to all commands:
442442
* ``--verbose``: sets the verbosity level (e.g. ``1`` the default, ``2`` and
443443
``3``, or you can use respective shortcuts ``-v``, ``-vv`` and ``-vvv``)
444444
* ``--silent``: disables all output and interaction, including errors
445-
* ``--quiet``: disables output and interaction, but errors are still displayed
446-
* ``--no-interaction``: disables interaction
447-
* ``--version``: outputs the version number of the console application
448-
* ``--help``: displays the command help
445+
* ``--quiet|-q``: disables output and interaction, but errors are still displayed
446+
* ``--no-interaction|-n``: disables interaction
447+
* ``--version|-V``: outputs the version number of the console application
448+
* ``--help|-h``: displays the command help
449449
* ``--ansi|--no-ansi``: whether to force of disable coloring the output
450+
* ``--profile``: enables the Symfony profiler
450451

451452
When using the ``FrameworkBundle``, two more options are predefined:
452453

453-
* ``--env``: sets the Kernel configuration environment (defaults to ``APP_ENV``)
454+
* ``--env|-e``: sets the Kernel configuration environment (defaults to ``APP_ENV``)
454455
* ``--no-debug``: disables Kernel debug (defaults to ``APP_DEBUG``)
455456

456457
So your custom commands can use them too out-of-the-box.

0 commit comments

Comments
 (0)