Skip to content

Commit

Permalink
Avoid '--invoke is an unrecognized option' error when Drush6 receives…
Browse files Browse the repository at this point in the history
… a backend request from a prior version of Drush.
  • Loading branch information
weitzman committed Aug 21, 2013
1 parent d9e8ebc commit 451ab38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/command.inc
Expand Up @@ -544,6 +544,9 @@ function _drush_verify_cli_options($command) {
// Also add in global options
$options = array_merge($options, drush_get_global_options());

// Add a placeholder option so that backend requests originating from prior versions of Drush are valid.
$options += array('invoke' => '');

// Now we will figure out which options in the cli context
// are not represented in our options list.
$cli_options = array_keys(drush_get_context('cli'));
Expand Down

0 comments on commit 451ab38

Please sign in to comment.