Closed attrib closed 5 years ago
I think your are right, drush-launcher does not modify the input ($_SERVER['argv']). I think we should keep it like that. Parsing the input with all its quicks is not easy. --fallback
should conflict with options from standard drush commands.
I think we should either remove the --fallback option or rename it to something more explicit like --drush-launcher-fallback
.
The handling though the environment variable looks much simple and less error prone to me.
ping @weitzman
Well, global drush9 is not a supported thing. Drush does not document or recommend that. But still, we don't have to make lives harder for folks.
I'm fine with dropping the option and expecting an env variable.
@webflo It is conflicting with drush, as it exit with The "--fallback" option does not exist.
, expect when I also add --strict=0
.
So in my mind its either dropping --fallback
at all or add to the readme that if you add --fallback
you need to add --strict
too.
@weitzman, I just ran into this issue. There is no global drush9. The global fallback is drush8, but this error appears if the site has a local drush9.
Fixed in #73. Use env variable instead of --fallback.
If you use
--fallback=/opt/drush.8.phar
but the launcher finds a drush 9, the drush call fails withThe "--fallback" option does not exist.
I'm not sure and didn't tested it as I just use the envoirment variable now, but I think in
$_SERVER['argv']
the--fallback=...
needs to be removed. TheprepareArgument
function is only called if the fallback is used.