function _drush_get_command_options

8.0.x command.inc _drush_get_command_options($command)
6.x command.inc _drush_get_command_options($command)
7.x command.inc _drush_get_command_options($command)
5.x command.inc _drush_get_command_options($command)
master command.inc _drush_get_command_options($command)

Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records.

Related topics

3 calls to _drush_get_command_options()
drush_get_original_cli_args_and_options in includes/command.inc
Return the original cli args and options, exactly as they appeared on the command line, and in the same order. Any command-specific options that were set will also appear in this list, appended at the very end.
_drush_usage_log in commands/core/usage.drush.inc
_drush_verify_cli_options in includes/command.inc
Fail with an error if the user specified options on the command line that are not documented in the current command record. Also verify that required options are present.

File

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

Code

function _drush_get_command_options($command) {
  drush_command_invoke_all_ref('drush_help_alter', $command);
  $options = $command['options'];
  foreach ($command['sub-options'] as $group => $suboptions) {
    $options = array_merge($options, $suboptions);
  }
  return $options;
}