function annotationcommand_adapter_get_options

master 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


2 calls to annotationcommand_adapter_get_options()
annotationcommand_adapter_process_command in includes/
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/
Invoke Drush API calls, including all hooks.


includes/, line 180


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;