Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Option -e prod is interpreted as a command when no command is specified #23343

Closed
symfony/recipes
#481
@ghost

Description

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.2

I usually use the short command bin/console to list all available options. But on a production server, I have to set the env option to avoid default dev environment and missing debug vendors.

But, if I type only bin/console -e prod the command report the following error:

  [Symfony\Component\Console\Exception\CommandNotFoundException]  
  Command "prod" is not defined.                                  
  Did you mean this?                                              
      doctrine:ensure-production-settings

As soon as I set a command, there is no problem (for example bin/console list -e prod. The word prod is interpreted as the command instead of the value of the -e option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions