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.:

2 calls to drush_set_command()
drush_dispatch in includes/
Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…
drush_parse_command in includes/
Matches a commands array, as returned by drush_get_arguments, with the current command table.


includes/, line 351
The Drush context API implementation.


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