function drush_get_arguments

8.0.x context.inc drush_get_arguments()
6.x context.inc drush_get_arguments()
7.x context.inc drush_get_arguments()
3.x context.inc drush_get_arguments()
4.x context.inc drush_get_arguments()
5.x context.inc drush_get_arguments()
master context.inc drush_get_arguments()

Get the arguments passed to the drush.php script.

When drush_set_arguments is initially called by drush_parse_options, the entire list of arguments will be populated. Once the command has been dispatched, this will be return only the remaining arguments to the command.

4 calls to drush_get_arguments()
drush_main in ./drush.php
The main Drush function.
drush_parse_command in includes/command.inc
Matches a commands array, as returned by drush_get_arguments, with the current command table.
drush_remote_command in includes/drush.inc
Process commands that are executed on a remote drush instance.
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 321
The Drush context API implementation.

Code

function drush_get_arguments() {
  return drush_get_context('arguments');
}