@@ -447,19 +447,20 @@ The Console component adds some predefined options to all commands:
447
447
* ``--verbose ``: sets the verbosity level (e.g. ``1 `` the default, ``2 `` and
448
448
``3 ``, or you can use respective shortcuts ``-v ``, ``-vv `` and ``-vvv ``)
449
449
* ``--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
454
454
* ``--ansi|--no-ansi ``: whether to force of disable coloring the output
455
+ * ``--profile ``: enables the Symfony profiler
455
456
456
457
.. versionadded :: 7.2
457
458
458
459
The ``--silent `` option was introduced in Symfony 7.2.
459
460
460
461
When using the ``FrameworkBundle ``, two more options are predefined:
461
462
462
- * ``--env ``: sets the Kernel configuration environment (defaults to ``APP_ENV ``)
463
+ * ``--env|-e ``: sets the Kernel configuration environment (defaults to ``APP_ENV ``)
463
464
* ``--no-debug ``: disables Kernel debug (defaults to ``APP_DEBUG ``)
464
465
465
466
So your custom commands can use them too out-of-the-box.
0 commit comments