function drush_unit_return_options

8.0.x unit.drush.inc drush_unit_return_options()
6.x unit.drush.inc drush_unit_return_options()
7.x unit.drush.inc drush_unit_return_options()
5.x unit.drush.inc drush_unit_return_options()
master unit.drush.inc drush_unit_return_options()

File

tests/unit.drush.inc, line 135
Commands which are useful for unit tests.

Code

function drush_unit_return_options() {
  $all_option_values = array_merge(drush_get_context('cli'), drush_get_context('stdin'));
  foreach (drush_get_global_options() as $key => $info) {
    unset($all_option_values[$key]);
  }
  if (isset($all_option_values['log-message'])) {
    drush_log($all_option_values['log-message'], 'warning');
    drush_log("done", 'warning');
    unset($all_option_values['log-message']);
  }
  return $all_option_values;
}