function drush_set_command

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

Set the command being executed.

Drush_dispatch will set the correct command based on it's matching of the script arguments retrieved from drush_get_arguments to the implemented commands specified by drush_get_commands.


A numerically indexed array of command components.:

1 call to drush_set_command()
drush_parse_command in includes/
Matches a commands array, as returned by drush_get_arguments, with the current command table.


includes/, line 335
The Drush context API implementation.


function drush_set_command($command) {
  drush_set_context('command', $command);