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_args, 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 (i.e. the command name is removed).

Parameters

arguments: Command line arguments, as an array.

4 calls to drush_set_arguments()
drush_parse_args in includes/command.inc
Parse console arguments.
drush_shift in includes/command.inc
Pop an argument off of drush's argument list
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.
drush_sitealias_check_arg_and_site_set in includes/sitealias.inc
Check to see if the user specified an alias in an arguement, or via site-set. If so, return the name of the alias.

File

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

Code

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