function drush_command_normalize_name

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


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/
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…


includes/, line 1463
The drush command engine.


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