function drush_core_quick_drupal_options

8.0.x core.drush.inc drush_core_quick_drupal_options(&$items)
6.x core.drush.inc drush_core_quick_drupal_options(&$items)
7.x core.drush.inc drush_core_quick_drupal_options(&$items)
5.x core.drush.inc drush_core_quick_drupal_options(&$items)
master core.drush.inc drush_core_quick_drupal_options(&$items)

Include options and engines for core-quick-drupal command, aggregated from other command options that are available. We prefix option descriptons, to make the long list more navigable.

Parameters

$items: The core commandfile command array, by reference. Used to include site-install options and add options and engines for core-quick-drupal.

1 call to drush_core_quick_drupal_options()
core_drush_command in commands/core/core.drush.inc
Implementation of hook_drush_command().

File

commands/core/core.drush.inc, line 1039
Core drush commands.

Code

function drush_core_quick_drupal_options(&$items) {
  $options = array(
    'core' => 'Drupal core to download. Defaults to "drupal" (latest stable version).',
    'use-existing' => 'Use an existing Drupal root, specified with --root. Overrides --core.',
    'profile' => 'The install profile to use. Defaults to standard.',
    'enable' => 'Specific extensions (modules or themes) to enable. By default, extensions with the same name as requested projects will be enabled automatically.',
    'server' => 'Host IP address and port number to bind to and path to open in web browser (hyphen to clear a default path), all elements optional. See runserver examples for shorthand.',
    'no-server' => 'Avoid starting runserver (and browser) for the created Drupal site.',
    'browser' => 'Optional name of a browser to open site in. If omitted the OS default browser will be used. Set --no-browser to disable.',
    'use-name' => array(
      'hidden' => TRUE,
      'description' => 'Overrides "name" argument.',
    ),
    'makefile' => array(
      'description' => 'Makefile to use. Makefile must specify which version of Drupal core to build.',
      'example-value' => 'mysite.make',
      'value' => 'optional',
    ),
    'root' => array(
      'description' => 'Path to Drupal root.',
      'example-value' => '/path/to/root',
      'value' => 'optional',
    ),
  );
  $pm = pm_drush_command();
  foreach ($pm['pm-download']['options'] as $option => $description) {
    if (is_array($description)) {
      $description = $description['description'];
    }
    $options[$option] = 'Download option: ' . $description;
  }
  // Unset a few options that are not usable here, as we control them ourselves
  // or they are otherwise implied by the environment.
  unset($options['destination']);
  unset($options['drupal-project-rename']);
  unset($options['default-major']);
  unset($options['use-site-dir']);
  $si = site_install_drush_command();
  foreach ($si['site-install']['options'] as $option => $description) {
    if (is_array($description)) {
      $description = $description['description'];
    }
    $options[$option] = 'Site install option: ' . $description;
  }
  unset($options['sites-subdir']);
  $runserver = runserver_drush_command();
  foreach ($runserver['runserver']['options'] as $option => $description) {
    $options[$option] = 'Runserver option: ' . $description;
  }
  unset($options['user']);
  $items['core-quick-drupal']['options'] = $options;
  $items['core-quick-drupal']['engines'] = $pm['pm-download']['engines'];
}