function drush_command_default_options

8.0.x command.inc drush_command_default_options($command = NULL)
6.x command.inc drush_command_default_options($command = NULL)
7.x command.inc drush_command_default_options($command = NULL)
3.x command.inc drush_command_default_options($command = NULL)
4.x command.inc drush_command_default_options($command = NULL)
5.x command.inc drush_command_default_options($command = NULL)
master command.inc drush_command_default_options($command = NULL)

Conditionally include default options based on the command used.

3 calls to drush_command_default_options()
drush_dispatch in includes/command.inc
Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…
drush_preflight_command_dispatch in includes/preflight.inc
Handle any command preprocessing that may need to be done, including potentially redispatching the command immediately (e.g. for remote commands).
drush_set_config_special_contexts in includes/context.inc
There are certain options such as 'site-aliases' and 'command-specific' that must be merged together if defined in multiple drush configuration files. If we did not do this merge, then the last configuration file that defined any…

File

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

Code

function drush_command_default_options($command = NULL) {
  $command_default_options = drush_get_context('command-specific');
  drush_command_set_command_specific($command_default_options, $command);
}