Skip to content

Missing option and shortcuts in list of global console options #21196

Open
@jhatlak

Description

@jhatlak

https://symfony.com/doc/current/console/input.html#command-global-options is supposed to list all predefined/reserved options.

Trying to define one of these in custom commands will result in a failed initialization and an exception like this:

An option with shortcut "e" already exists.

AFAICS the following are currently missing:

  • -eqVne
  • --profile

Cf. output of bin/console for a complete/up-to-date list of options:

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
      --silent          Do not output any message
  -q, --quiet           Only errors are displayed. All other output is suppressed
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "dev"]
      --no-debug        Switch off debug mode.
      --profile         Enables profiling (requires debug).
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions