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()

File

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

Code

function _drush_command_set_default_options($command_default_options, $command) {
  $options_were_set = array();
  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 precedence than the various config file
      // context, but lower than command-line options.
      if (!drush_get_option('no-' . $key, FALSE)) {
        drush_set_option($key, $value, 'specific');
        $options_were_set[] = $key;
      }
    }
  }
  return $options_were_set;
}