function _drush_command_set_default_options

8.0.x command.inc _drush_command_set_default_options($command_default_options, $command)
6.x command.inc _drush_command_set_default_options($command_default_options, $command)
7.x command.inc _drush_command_set_default_options($command_default_options, $command)
3.x command.inc _drush_command_set_default_options($command)
4.x command.inc _drush_command_set_default_options($command)
5.x command.inc _drush_command_set_default_options($command_default_options, $command)
master command.inc _drush_command_set_default_options($command_default_options, $command)
1 call to _drush_command_set_default_options()
drush_command_default_options in includes/command.inc
Conditionally include default options based on the command used.

File

includes/command.inc, line 657
The drush command engine.

Code

function _drush_command_set_default_options($command) {
  $options_were_set = FALSE;
  $command_default_options = drush_get_context('command-specific');
  if (array_key_exists($command, $command_default_options)) {
    foreach ($command_default_options[$command] as $key => $value) {
      // We set command-specific options in their own context
      // that is higher precidence than the various config file
      // context, but lower than command-line options.
      drush_set_option($key, $value, 'specific');
      $options_were_set = TRUE;
    }
  }
  return $options_were_set;
}