function drush_set_arguments

8.0.x context.inc drush_set_arguments($arguments)
6.x context.inc drush_set_arguments($arguments)
7.x context.inc drush_set_arguments($arguments)
3.x context.inc drush_set_arguments($arguments)
4.x context.inc drush_set_arguments($arguments)
5.x context.inc drush_set_arguments($arguments)
master context.inc drush_set_arguments($arguments)

Set the arguments passed to the drush.php script.

This function will set the 'arguments' context of the current running script.

When initially called by drush_parse_options, the entire list of arguments will be populated, once the command is dispatched, this will be set to only the remaining arguments to the command.

Parameters

arguments: Command line arguments, as an array.

2 calls to drush_set_arguments()
drush_parse_args in includes/command.inc
Parse console arguments.
drush_sitealias_check_arg in includes/sitealias.inc
Check to see if the first command-line arg or the -l option is a site alias; if it is, copy its record values to the 'alias' context.

File

includes/context.inc, line 309
The Drush context API implementation.

Code

function drush_set_arguments($arguments) {
  drush_set_context('arguments', $arguments);
}