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()

Gets the command line arguments passed to Drush.

Return value

array An indexed array of arguments. Until Drush has dispatched the command, the array will include the command name as the first element. After that point the array will not include the command name.

See also

drush_set_arguments()

10 calls to drush_get_arguments()
BaseBoot::bootstrap_and_dispatch in lib/Drush/Boot/BaseBoot.php
Main entrypoint to bootstrap the selected CMS and execute the selected command.
BaseBoot::report_command_error in lib/Drush/Boot/BaseBoot.php
Called by Drush if a command is not found, or if the command was found, but did not meet requirements.
DrupalBoot::drush_command_belongs_to_disabled_module in lib/Drush/Boot/DrupalBoot.php
Check if the given command belongs to a disabled module.
drush_early_complete in includes/complete.inc
Produce autocomplete output.
drush_parse_command in includes/command.inc
Matches a commands array, as returned by drush_get_arguments, with the current command table.

... See full list

File

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

Code

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