function drush_expand_short_form_options

8.0.x drush_expand_short_form_options(&$options)
6.x drush_expand_short_form_options(&$options)
7.x drush_expand_short_form_options(&$options)
5.x drush_expand_short_form_options(&$options)
master drush_expand_short_form_options(&$options)

For all global options with a short form, convert all options in the option array that use the short form into the long form.

2 calls to drush_expand_short_form_options()
drush_preflight_command_dispatch in includes/
Handle any command preprocessing that may need to be done, including potentially redispatching the command immediately (e.g. for remote commands).
drush_set_config_special_contexts in includes/
There are certain options such as 'site-aliases' and 'command-specific' that must be merged together if defined in multiple drush configuration files. If we did not do this merge, then the last configuration file that defined any…


includes/, line 200
The Drush context API implementation.


function drush_expand_short_form_options(&$options) {
  foreach (drush_get_global_options() as $name => $info) {
    if (is_array($info)) {
      // For any option with a short form, check to see if the short form was set in the
      // options.  If it was, then rename it to its long form.
      if (array_key_exists('short-form', $info) && array_key_exists($info['short-form'], $options)) {
        if (!array_key_exists($name, $options) || !array_key_exists('merge-pathlist', $info)) {
          $options[$name] = $options[$info['short-form']];
        else {
          $options[$name] = array_merge((array) $options[$name], (array) $options[$info['short-form']]);