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

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


8 calls to drush_get_arguments()
drush_command_belongs_to_disabled_module in ./drush.php
Check if the given command belongs to a disabled module
drush_early_complete in includes/
Produce autocomplete output.
drush_parse_command in includes/
Matches a commands array, as returned by drush_get_arguments, with the current command table.
drush_preflight_command_dispatch in includes/
Handle any command preprocessing that may need to be done, including potentially redispatching the command immediately (e.g. for remote commands).
drush_shell_alias_replace in includes/
Check if a shell alias exists for current request. If so, re-route to core-execute and pass alias value along with rest of CLI arguments.

... See full list


includes/, line 366
The Drush context API implementation.


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