function drush_get_arguments

8.0.x drush_get_arguments()
6.x drush_get_arguments()
7.x drush_get_arguments()
3.x drush_get_arguments()
4.x drush_get_arguments()
5.x drush_get_arguments()
master 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/
Matches a commands array, as returned by drush_get_arguments, with the current command table.
drush_remote_command in includes/
Process commands that are executed on a remote drush instance.
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 321
The Drush context API implementation.


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