I have a drush command that does some stuff and at the end of its execution I want to invoke twig-compile --uri=foobar.com
. When I call drush_invoke('twig-compile')
I get error about unknown arguments(those were passed to my drush command). I tried things like this before invoking the command drush_set_context('options', ['uri', 'foobar.com']);
but no success yet.
How should I reset the options so twigc won't complain about them or how do I invoke the twigc command directly with the uri argument?