function annotationcommand_adapter_get_options

master annotationcommand_adapter.inc annotationcommand_adapter_get_options($command)

Collect all of the options defined in every relevant context, and merge them together to form the options array.

Return value

array

2 calls to annotationcommand_adapter_get_options()
annotationcommand_adapter_process_command in includes/annotationcommand_adapter.inc
This function is set as the $command['callback'] for commands that have been converted to annotated commands. When the DRUSH_SYMFONY environment variable is set, these will be called via Symfony's Application::run() method. Otherwise,…
_drush_invoke_hooks in includes/command.inc
Invoke Drush API calls, including all hooks.

File

includes/annotationcommand_adapter.inc, line 180
annotationcommand_adapter.inc

Code

function annotationcommand_adapter_get_options($command) {
  $default_options = isset($command['consolidation-option-defaults']) ? $command['consolidation-option-defaults'] :[];
  $options = drush_redispatch_get_options() + $default_options;

  $options += drush_get_merged_options();

  return $options;
}