I have a project built on Symfony 1.4 and it has multiple environments - each developer has their own copy installed on their local machine and therefore has their own environment.
I am able to dynamically set the environment in index.php, but how can I do this for CLI tasks?
I could of course use --env=myenvironment on all tasks, but I would prefer it to be able to use the same logic as I have in index.php