title: How to add a new command line option to symfony console
body: <p>I am not an expert in Symfony, I need to add a new console option <code>--country=XX</code> to the symfony console.</p>
  
  <p>This isnt a command, its an option which changes how whatever command is run, executes by selecting a different database to operate on by building the doctrine.dbal.dbname parameter such as <code>api_fr</code>, <code>api_de</code>, <code>api_es</code>, etc.</p>
  
  <p>I have tried to search for a way to do this, but unfortunately everything comes back to adding commands, which is not what I want to do, I want to add an option.</p>
  
  <p>I am building an API which part of it works with Symfony 2.8 and another part is using Symfony 3.x. I suppose the answer might be the same in both versions, but if you know how to do this in both versions and they are separate, please let me know.</p>