function drush_set_arguments

8.0.x drush_set_arguments($arguments)
6.x drush_set_arguments($arguments)
7.x drush_set_arguments($arguments)
3.x drush_set_arguments($arguments)
4.x drush_set_arguments($arguments)
5.x drush_set_arguments($arguments)
master 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.


arguments: Command line arguments, as an array.

2 calls to drush_set_arguments()
drush_parse_args in includes/
Parse console arguments.
drush_sitealias_check_arg in includes/
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.


includes/, line 309
The Drush context API implementation.


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