title: Multiple environments in doctrine cli
body: <p>I'm trying to do a schema update into multiple databases, depending on the config environment used the changes will be done in a database or other.</p>
  
  <p>I was trying to add an own --env parameter to the doctrine script:</p>
  
  <pre><code>vendor/bin/doctrine --env=dev orm:schema-tool:update --force -vvv --dump-sql
  </code></pre>
  
  <p>And inside my cli-config.php I read the argument and select my database, but after that, it fails:</p>
  
  <pre><code>[RuntimeException]                  
  The "--env" option does not exist.  
  
  Exception trace:
  () at /var/www/consupermiso2-frontend/vendor/symfony/console/Input/ArgvInput.php:213
  Symfony\Component\Console\Input\ArgvInput-&gt;addLongOption() at /var/www/consupermiso2-frontend/vendor/symfony/console/Input/ArgvInput.php:152
  Symfony\Component\Console\Input\ArgvInput-&gt;parseLongOption() at /var/www/consupermiso2-frontend/vendor/symfony/console/Input/ArgvInput.php:86
  Symfony\Component\Console\Input\ArgvInput-&gt;parse() at /var/www/consupermiso2-frontend/vendor/symfony/console/Input/Input.php:61
  Symfony\Component\Console\Input\Input-&gt;bind() at /var/www/consupermiso2-frontend/vendor/symfony/console/Command/Command.php:231
  Symfony\Component\Console\Command\Command-&gt;run() at /var/www/consupermiso2-frontend/vendor/symfony/console/Application.php:878
  Symfony\Component\Console\Application-&gt;doRunCommand() at /var/www/consupermiso2-frontend/vendor/symfony/console/Application.php:195
  Symfony\Component\Console\Application-&gt;doRun() at /var/www/consupermiso2-frontend/vendor/symfony/console/Application.php:126
  Symfony\Component\Console\Application-&gt;run() at /var/www/consupermiso2-frontend/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php:60
  Doctrine\ORM\Tools\Console\ConsoleRunner::run() at /var/www/consupermiso2-frontend/vendor/doctrine/orm/bin/doctrine.php:66
  include() at /var/www/consupermiso2-frontend/vendor/doctrine/orm/bin/doctrine:4
  
  
  orm:schema-tool:update [--complete] [--dump-sql] [-f|--force]
  </code></pre>
  
  <p>How can I choose in which database I'm going to work using the cli tool?</p>