function drush_is_command

8.0.x command.inc drush_is_command($command)
6.x command.inc drush_is_command($command)
7.x command.inc drush_is_command($command)
3.x command.inc drush_is_command($command)
4.x command.inc drush_is_command($command)
5.x command.inc drush_is_command($command)
master command.inc drush_is_command($command)

Parameters

string: name of command to check.

Return value

boolean TRUE if the given command has an implementation.

File

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

Code

function drush_is_command($command) {
  $commands = drush_get_commands();
  return isset($commands[$command]);
}