Skip to content

Commit 1e2f25b

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: list shortcuts of global CLI options as well
2 parents 3e42d81 + 6f7c249 commit 1e2f25b

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
@@ -447,19 +447,20 @@ The Console component adds some predefined options to all commands:
447447
* ``--verbose``: sets the verbosity level (e.g. ``1`` the default, ``2`` and
448448
``3``, or you can use respective shortcuts ``-v``, ``-vv`` and ``-vvv``)
449449
* ``--silent``: disables all output and interaction, including errors
450-
* ``--quiet``: disables output and interaction, but errors are still displayed
451-
* ``--no-interaction``: disables interaction
452-
* ``--version``: outputs the version number of the console application
453-
* ``--help``: displays the command help
450+
* ``--quiet|-q``: disables output and interaction, but errors are still displayed
451+
* ``--no-interaction|-n``: disables interaction
452+
* ``--version|-V``: outputs the version number of the console application
453+
* ``--help|-h``: displays the command help
454454
* ``--ansi|--no-ansi``: whether to force of disable coloring the output
455+
* ``--profile``: enables the Symfony profiler
455456

456457
.. versionadded:: 7.2
457458

458459
The ``--silent`` option was introduced in Symfony 7.2.
459460

460461
When using the ``FrameworkBundle``, two more options are predefined:
461462

462-
* ``--env``: sets the Kernel configuration environment (defaults to ``APP_ENV``)
463+
* ``--env|-e``: sets the Kernel configuration environment (defaults to ``APP_ENV``)
463464
* ``--no-debug``: disables Kernel debug (defaults to ``APP_DEBUG``)
464465

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

0 commit comments

Comments
 (0)