function drush_command_defaults

8.0.x drush_command_defaults($key, $commandfile, $path)
6.x drush_command_defaults($key, $commandfile, $path)
7.x drush_command_defaults($key, $commandfile, $path)
4.x drush_command_defaults($key, $commandfile, $path)
5.x drush_command_defaults($key, $commandfile, $path)
master drush_command_defaults($key, $commandfile, $path)
3 calls to drush_command_defaults()
drush_get_commands in includes/
Get a list of all implemented commands. This invokes hook_drush_command().
drush_get_global_options in includes/
Get the available global options. Used by help command. Command files may modify this list using hook_drush_help_alter().
drush_global_options_command in commands/core/
Build a fake command for the purposes of showing examples and options.


includes/, line 1026
The drush command engine.


function drush_command_defaults($key, $commandfile, $path) {
  return array(
    'command' => $key,
    'command-hook' => $key,
    'callback arguments' => array(),
    'commandfile' => $commandfile,
    'path' => dirname($path),
    'engines' => array(), // Helpful for drush_show_help().
    'callback' => 'drush_command',
    'description' => NULL,
    'sections' => array(
      'examples' => 'Examples',
      'arguments' => 'Arguments',
      'options' => 'Options',
    'arguments' => array(),
    'required-arguments' => FALSE,
    'options' => array(),
    'sub-options' => array(),
    'allow-additional-options' => FALSE,
    'examples' => array(),
    'aliases' => array(),
    'core' => array(),
    'scope' => 'site',
    'drupal dependencies' => array(),
    'drush dependencies' => array(),
    'handle-remote-commands' => FALSE,
    'strict-option-handling' => FALSE,
    'bootstrap_errors' => array(),
    'topics' => array(),
    'hidden' => FALSE,