function drush_append_negation_options

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

Related topics

1 call to drush_append_negation_options()
_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 614
The drush command engine.

Code

function drush_append_negation_options($allowed_options) {
  $new_allowed = $allowed_options;
  foreach ($allowed_options as $option) {
    $new_allowed[] = 'no-' . $option;
  }
  return $new_allowed;
}