function drush_command_normalize_name

8.0.x command.inc drush_command_normalize_name($command_name)
6.x command.inc drush_command_normalize_name($command_name)
7.x command.inc drush_command_normalize_name($command_name)
master command.inc drush_command_normalize_name($command_name)

Parameters

string: name of command or command alias.

Return value

string Primary name of command.

1 call to drush_command_normalize_name()
drush_command_get_command_specific_options in includes/command.inc
Return all of the command-specific options defined in the given options set for the specified command name. Note that it is valid to use the command name alias rather than the primary command name, both in the parameter to this function, and in the…

File

includes/command.inc, line 1463
The drush command engine.

Code

function drush_command_normalize_name($command_name) {
  $commands = drush_get_commands();
  return isset($commands[$command_name]) ? $commands[$command_name]['command'] : $command_name;
}