Drush: includes/command.inc File Reference

  1. 7.x doxygen/html/includes_2command_8inc.html
  2. master doxygen/html/command_8inc.html
  3. master doxygen/html/includes_2command_8inc.html
command.inc File Reference

Go to the source code of this file.

Functions

 drush_invoke ($command, $arguments=array())
 drush_invoke_process ($site_alias_record, $command_name, $commandline_args=array(), $commandline_options=array(), $backend_options=TRUE)
 drush_dispatch ($command, $arguments=array())
 drush_command ()
 _drush_invoke_hooks ($command, $args)
 drush_handle_command_output ($command, $structured_output)
 _drush_verify_cli_options ($command)
 drush_append_negation_options ($allowed_options)
 _drush_verify_cli_arguments ($command)
 _drush_get_command_options ($command)
 _drush_flatten_options ($options)
 drush_redispatch_get_options ()
 drush_parse_args ()
 drush_shift ()
 drush_adjust_args_if_shebang_script (&$args)
 drush_process_bootstrap_to_first_arg (&$arguments)
 drush_get_commands ($reset=FALSE)
 drush_command_defaults ($key, $commandfile, $path)
 drush_command_translate (&$command)
 _drush_command_translate ($source)
 drush_parse_command ()
 _drush_prepare_command (&$command, $arguments=array())
 drush_command_invoke_all ()
 drush_command_invoke_all_ref ($hook, &$reference_parameter)
 drush_command_implements ($hook)
 drush_is_command ($command)
 drush_command_normalize_name ($command_name)
 drush_commandfile_list ()
 _drush_add_commandfiles ($searchpath, $phase=NULL, $reset=FALSE)
 drush_filename_blacklist ()
 drush_command_include ($command)
 drush_command_get_includes ($command)
 drush_command_default_options ($command=NULL)
 drush_sitealias_command_default_options ($site_record, $prefix, $command=NULL)
 drush_command_set_command_specific_options ($prefix, $command=NULL)
 drush_command_set_command_specific ($command_default_options, $command=NULL)
 _drush_command_set_default_options ($command_default_options, $command)
 drush_command_get_command_specific_options ($options, $command_name, $prefix= '')
 drush_get_original_cli_args_and_options ($command=NULL)
 drush_command_hook ($commandfile, $hook)
 drush_enforce_requirement_bootstrap_phase (&$command)
 drush_enforce_requirement_drush_dependencies (&$command)
 drush_enforce_requirement_core (&$command)
 drush_shell_alias_replace ()

Detailed Description

End of "defgroup dispatching".

The drush command engine.

Since drush can be invoked independently of a proper Drupal installation and commands may operate across sites, a distinct command engine is needed.

It mimics the Drupal module engine in order to economize on concepts and to make developing commands as familiar as possible to traditional Drupal module developers.

Definition in file command.inc.

Function Documentation

_drush_command_translate (   $source)

Helper function for drush_command_translate().

Parameters
$sourceString or array.

Definition at line 1096 of file command.inc.

References dt().

Referenced by drush_command_translate().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_prepare_command ( $command,
  $arguments = array() 
)

Called by drush_parse_command(). If a command is dispatched directly by drush_dispatch(), then drush_dispatch() will call this function.

Definition at line 1226 of file command.inc.

Referenced by drush_dispatch(), and drush_parse_command().

Here is the caller graph for this function:

drush_adjust_args_if_shebang_script ( $args)

Special checking for "shebang" script handling.

If there is a file 'script.php' that begins like so: #!/path/to/drush Then $args will be: /path/to/drush /path/to/script userArg1 userArg2 ... If it instead starts like this: #!/path/to/drush –flag php-script Then $args will be: /path/to/drush "–flag php-script" /path/to/script userArg1 userArg2 ... (Note that execve does not split the parameters from the shebang line on whitespace; see http://en.wikipedia.org/wiki/Shebang_%28Unix%29) When drush is called via one of the "shebang" lines above, the first or second parameter will be the full path to the "shebang" script file – and if the path to the script is in the second position, then we will expect that the argument in the first position must begin with a '@' (alias) or '-' (flag). Under ordinary circumstances, we do not expect that the drush command must come before any argument that is the full path to a file. We use this assumption to detect "shebang" script execution.

Definition at line 882 of file command.inc.

References _drush_is_drush_shebang_script(), drush_has_bash(), drush_set_context(), and drush_set_option().

Referenced by drush_parse_args().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_default_options (   $command = NULL)

Conditionally include default options based on the command used.

Definition at line 1506 of file command.inc.

References drush_get_context().

Referenced by drush_dispatch(), drush_preflight_command_dispatch(), and drush_set_config_special_contexts().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_get_command_specific_options (   $options,
  $command_name,
  $prefix = '' 
)

Return all of the command-specific options defined in the given options set for the specified command name. Note that it is valid to use the command name alias rather than the primary command name, both in the parameter to this function, and in the options set.

Definition at line 1584 of file command.inc.

References drush_command_normalize_name().

Referenced by drush_backend_invoke_concurrent().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_hook (   $commandfile,
  $hook 
)

Determine whether a command file implements a hook.

Parameters
$moduleThe name of the module (without the .module extension).
$hookThe name of the hook (e.g. "help" or "menu").
Returns
TRUE if the the hook is implemented.

Definition at line 1636 of file command.inc.

Referenced by drush_command_implements(), drush_get_commands(), and drush_get_engines().

Here is the caller graph for this function:

drush_command_implements (   $hook)

Determine which command files are implementing a hook.

Parameters
$hookThe name of the hook (e.g. "drush_help" or "drush_command").
Returns
An array with the names of the command files which are implementing this hook.

Definition at line 1300 of file command.inc.

References drush_command_hook(), and drush_commandfile_list().

Referenced by drush_command(), drush_command_invoke_all_ref(), and make_validate_info_file().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_include (   $command)

Conditionally include files based on the command used.

Steps through each of the currently loaded commandfiles and loads an optional commandfile based on the key.

When a command such as 'pm-enable' is called, this function will find all 'enable.pm.inc' files that are present in each of the commandfile directories.

Definition at line 1479 of file command.inc.

References drush_log(), and dt().

Referenced by _drush_invoke_hooks().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_invoke_all ( )

Invoke a hook in all available command files that implement it.

See Also
drush_command_invoke_all_ref()
Parameters
$hookThe name of the hook to invoke.
...Arguments to pass to the hook.
Returns
An array of return values of the hook implementations. If commands return arrays from their implementations, those are merged into one array.

Definition at line 1251 of file command.inc.

Referenced by drush_cache_get_bins(), drush_complete_rebuild_arguments(), drush_engine_topic_command(), drush_get_engine_types_info(), drush_notify_command_message(), drush_pm_download(), drush_set_error(), drush_sql_sanitize(), and pm_update_finish().

Here is the caller graph for this function:

drush_command_invoke_all_ref (   $hook,
$reference_parameter 
)

A drush_command_invoke_all() that wants the first parameter to be passed by reference.

See Also
drush_command_invoke_all()

Definition at line 1267 of file command.inc.

References drush_command_implements().

Referenced by _drush_get_command_options(), drush_dispatch(), drush_get_global_options(), and drush_pm_download().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_normalize_name (   $command_name)
Parameters
stringname of command or command alias.
Returns
string Primary name of command.

Definition at line 1330 of file command.inc.

References drush_get_commands().

Referenced by drush_command_get_command_specific_options().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command_translate ( $command)

Translates description and other keys of a command definition.

Parameters
$commandA command definition.

Definition at line 1074 of file command.inc.

References _drush_command_translate().

Referenced by drush_get_commands().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_commandfile_list ( )

Collect a list of all available drush command files.

Scans the following paths for drush command files:

  • The "/path/to/drush/commands" folder.
  • Folders listed in the 'include' option (see example.drushrc.php).
  • The system-wide drush commands folder, e.g. /usr/share/drush/commands
  • The ".drush" folder in the user's HOME folder.
  • /drush and sites/all/drush in current Drupal site.
  • Folders belonging to enabled modules in the current Drupal site.

A Drush command file is a file that matches "*.drush.inc".

See Also
drush_scan_directory()
Returns
An associative array whose keys and values are the names of all available command files.

Definition at line 1355 of file command.inc.

References drush_get_context().

Referenced by _drush_invoke_hooks(), drush_command_implements(), drush_docs_errorcodes(), drush_enforce_requirement_drush_dependencies(), drush_get_commands(), drush_get_engines(), and Unish\commandUnitCase\testCommandVersionSpecific().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_enforce_requirement_bootstrap_phase ( $command)

Check that a command is valid for the current bootstrap phase.

Parameters
$commandCommand to check. Any errors will be added to the 'bootstrap_errors' element.
Returns
TRUE if command is valid.

Definition at line 1649 of file command.inc.

References drush_get_context(), and dt().

Here is the call graph for this function:

drush_enforce_requirement_core ( $command)

Check that a command is valid for the current major version of core. Handles explicit version numbers and 'plus' numbers like 7+ (compatible with 7,8 ...).

Parameters
$commandCommand to check. Any errors will be added to the 'bootstrap_errors' element.
Returns
TRUE if command is valid.

Definition at line 1698 of file command.inc.

References drush_drupal_major_version(), and dt().

Here is the call graph for this function:

drush_enforce_requirement_drush_dependencies ( $command)

Check that a command has its declared drush dependencies available or have no dependencies. Drush dependencies are helpful when a command is invoking another command, or implementing its API.

Parameters
$commandCommand to check. Any errors will be added to the 'bootstrap_errors' element.
Returns
TRUE if dependencies are met.

Definition at line 1670 of file command.inc.

References drush_commandfile_list(), and dt().

Here is the call graph for this function:

drush_filename_blacklist ( )

Substrings to ignore during commandfile and site alias searching.

Definition at line 1458 of file command.inc.

References drush_get_option_list().

Referenced by _drush_sitealias_find_alias_files().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_commands (   $reset = FALSE)

Get a list of all implemented commands. This invokes hook_drush_command().

Returns
Associative array of currently active command descriptors.

Definition at line 973 of file command.inc.

References drush_command_hook(), drush_command_translate(), drush_commandfile_list(), and drush_merge_engine_data().

Referenced by _drush_verify_cli_options(), core_help_complete(), drush_bootstrap(), drush_command_normalize_name(), drush_complete_rebuild(), drush_complete_rebuild_arguments(), drush_docs_errorcodes(), drush_get_command_format_metadata(), drush_get_topics(), drush_invoke(), drush_is_command(), drush_parse_command(), drush_topic_core_topic(), Unish\commandUnitCase\testGetCommands(), and topic_drush_help_alter().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_original_cli_args_and_options (   $command = NULL)

Return the original cli args and options, exactly as they appeared on the command line, and in the same order. Any command-specific options that were set will also appear in this list, appended at the very end.

The args and options returned are raw, and must be escaped as necessary before use.

Definition at line 1606 of file command.inc.

References _drush_get_command_options(), drush_get_command(), and drush_get_context().

Referenced by drush_core_execute(), and drush_ssh_site_ssh().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_is_command (   $command)
Parameters
stringname of command to check.
Returns
boolean TRUE if the given command has an implementation.

Definition at line 1318 of file command.inc.

References drush_get_commands().

Here is the call graph for this function:

drush_parse_args ( )

Parse console arguments.

Definition at line 724 of file command.inc.

References drush_adjust_args_if_shebang_script(), drush_get_context(), drush_process_bootstrap_to_first_arg(), drush_set_arguments(), drush_set_config_special_contexts(), drush_set_context(), and drush_sitealias_valid_alias_format().

Referenced by drush_complete_process_argv(), drush_preflight_prepare(), and drush_shell_alias_replace().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_parse_command ( )

Matches a commands array, as returned by drush_get_arguments, with the current command table.

Note that not all commands may be discoverable at the point-of-call, since Drupal modules can ship commands as well, and they are not available until after bootstrapping.

drush_parse_command returns a normalized command descriptor, which is an associative array. Some of its entries are:

  • callback arguments: an array of arguments to pass to the calback.
  • callback: the function to run. Usually, this is 'drush_command', which will determine the primary hook for the function automatically. Only specify a callback function if you need many commands to call the same function (e.g. drush_print_file).
  • invoke hooks: If TRUE (the default), Drush will invoke all of the pre and post hooks for this command. Set to FALSE to suppress hooks. This setting is ignored unless the command 'callback' is also set.
  • primary function: Drush will copy the 'callback' parameter here if necessary. This value should not be set explicitly; use 'callback' instead.
  • description: description of the command.
  • arguments: an array of arguments that are understood by the command. for help texts.
  • required-arguments: The minimum number of arguments that are required, or TRUE if all are required.
  • options: an array of options that are understood by the command. for help texts.
  • examples: an array of examples that are understood by the command. for help texts.
  • scope: one of 'system', 'project', 'site'.
  • bootstrap: drupal bootstrap level (depends on Drupal major version). -1=no_bootstrap.
  • core: Drupal major version required.
  • drupal dependencies: drupal modules required for this command.
  • drush dependencies: other drush command files required for this command.
  • handle-remote-commands: set to TRUE if drush @remote mycommand should be executed locally rather than remotely dispatched. When this mode is set, the target site can be obtained via: drush_get_context('DRUSH_TARGET_SITE_ALIAS')
  • remote-tty: set to TRUE if Drush should force ssh to allocate a pseudo-tty when this command is being called remotely. Important for interactive commands. Remote commands that allocate a psedo-tty always print "Connection closed..." when done.
  • strict-option-handling: set to TRUE if drush should strictly separate local command cli options from the global options. Usually, drush allows global cli options and command cli options to be interspersed freely on the commandline. For commands where this flag is set, options are separated, with global options comming before the command names, and command options coming after, like so: drush –global-options command –command-options In this mode, the command options are no longer available via drush_get_option(); instead, they can be retrieved via: $args = drush_get_original_cli_args_and_options(); $args = drush_get_context('DRUSH_COMMAND_ARGS', array()); In this case, $args will contain the command args and options literally, exactly as they were entered on the command line, and in the same order as they appeared.
  • 'outputformat': declares the data format to be used to render the command result. In addition to the output format engine options listed below, each output format type can take additional metadata items that control the way that the output is rendered. See the comment in each particular output format class for information. The Drush core output format engines can be found in commands/core/outputformat.
    • 'default': The default type to render output as. If declared, the command should not print any output on its own, but instead should return a data structure (usually an associative array) that can be rendered by the output type selected.
    • 'pipe-format': When the command is executed in –pipe mode, the command output will be rendered by the format specified by the pipe-format item instead of the default format. Note that in either event, the user may specify the format to use via the –format command-line option.
    • 'formatted-filter': specifies a function callback that will be used to filter the command result if the selected output formatter is NOT declared to be machine-parsable. "table" is an example of an output format that is not machine-parsable.
    • 'parsable-filter': function callback that will be used to filter the command result if the selected output formatter is declared to be machine-parsable. "var_export" is an example of an output format that is machine-parsable.
    • 'output-data-type': An identifier representing the data structure that the command returns.
      See Also
      outputformat_drush_engine_outputformat() for a description of the supported values.
    • 'field-labels': A mapping from machine name to human-readable name for all of the fields in a table-format command result. All possible field names should appear in this list.
    • 'fields-default': A list of the machine names of the fields that should be displayed by default in tables.
    • 'private-fields': A list of any fields that contain sensitive information, such as passwords. By default, Drush will hide private fields before printing the results to the console, but will include them in backend invoke results. Use –show-passwords to display.
    • 'column-widths': A mapping from field machine name to the column width that should be used in table output. Drush will automatically calculate the width of any field not listed here based on the length of the data items in it.
  • engines: declares information on Drush engines the command will load. Available engines can vary by command type.
Returns
bool|array A command definition.

Definition at line 1194 of file command.inc.

References _drush_prepare_command(), drush_get_arguments(), drush_get_commands(), drush_get_option(), and drush_set_command().

Referenced by drush_preflight_command_dispatch(), and drush_redispatch_get_options().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_process_bootstrap_to_first_arg ( $arguments)

Process the –bootstrap-to-first-arg option, if it is present.

This option checks to see if the first user-provided argument is an alias or site specification; if it is, it will be shifted into the first argument position, where it will specify the site to bootstrap. The result of this is that if your shebang line looks like this:

#!/path/to/drush –bootstrap-to-first-arg php-script

Then when you run that script, you can optionally provide an alias such as as the first argument (e.g. $ ./mydrushscript.php scriptarg1 scriptarg2). Since this is the behavior that one would usually want, it is default behavior for a canonical script. That is, a script with a simple shebang line, like so:

#!/path/to/drush

will implicitly have "–bootstrap-to-first-arg" and "php-script" prepended, and will therefore behave exactly like the first example. To write a script that does not use –bootstrap-to-first-arg, then the drush command or at least one flag must be explicitly included, like so:

#!/path/to/drush php-script

Definition at line 949 of file command.inc.

References drush_get_context(), drush_get_option(), and drush_sitealias_get_record().

Referenced by drush_parse_args().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_shell_alias_replace ( )

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.

Definition at line 1722 of file command.inc.

References drush_get_arguments(), drush_get_context(), drush_log(), drush_parse_args(), drush_set_context(), drush_set_error(), drush_sitealias_get_record(), and dt().

Referenced by drush_preflight().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_shift ( )

Pop an argument off of drush's argument list

Definition at line 838 of file command.inc.

References drush_get_arguments(), drush_get_context(), drush_set_arguments(), and drush_set_context().

Here is the call graph for this function:

File

doxygen/html/includes_2command_8inc.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: includes/command.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_09e761304027c904456130627fd4dcf5.html">includes</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">command.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="includes_2command_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad45b0ad6ccdc34ebb10d38d5c2d6a1d1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1">drush_invoke</a> ($command, $arguments=array())</td></tr>
<tr class="memitem:ga125471885af052278a0874446b332cf9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process</a> ($site_alias_record, $command_name, $commandline_args=array(), $commandline_options=array(), $backend_options=TRUE)</td></tr>
<tr class="memitem:ga5db6ec7318291b3692bf905b87a9276b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b">drush_dispatch</a> ($command, $arguments=array())</td></tr>
<tr class="memitem:gae7a7f1f4b8c5edffbc2ececc6638698a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a">drush_command</a> ()</td></tr>
<tr class="memitem:gac0d79cc522d6f5cecf9f72ecc5ecceb8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8">_drush_invoke_hooks</a> ($command, $args)</td></tr>
<tr class="memitem:gaec7e84c5668d8e13f33c948659112495"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495">drush_handle_command_output</a> ($command, $structured_output)</td></tr>
<tr class="memitem:ga1e55a13b320525b6871dacc7265bf5a7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7">_drush_verify_cli_options</a> ($command)</td></tr>
<tr class="memitem:ga5252529828428b41cb1d7dbfa70562ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5252529828428b41cb1d7dbfa70562ab"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_append_negation_options</b> ($allowed_options)</td></tr>
<tr class="memitem:gaf0810560aced6f077d857aa5fba15fa0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf0810560aced6f077d857aa5fba15fa0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_drush_verify_cli_arguments</b> ($command)</td></tr>
<tr class="memitem:ga0edaf347ba975a7743a81eb3d7a4e38c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c">_drush_get_command_options</a> ($command)</td></tr>
<tr class="memitem:ga2d33822aebecae3f76bd5d19ff490d6b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga2d33822aebecae3f76bd5d19ff490d6b">_drush_flatten_options</a> ($options)</td></tr>
<tr class="memitem:ga9b1a98376983ee529fc868ef4280b12d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d">drush_redispatch_get_options</a> ()</td></tr>
<tr class="memitem:a5c7d0d064d4cb56bfe2b2311e5643e11"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11">drush_parse_args</a> ()</td></tr>
<tr class="memitem:a069157c844a772c6fc1c5c7e63f1b613"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a069157c844a772c6fc1c5c7e63f1b613">drush_shift</a> ()</td></tr>
<tr class="memitem:a59d387101622883fca350211a1c486f1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1">drush_adjust_args_if_shebang_script</a> (&amp;$args)</td></tr>
<tr class="memitem:a019118f49079e478cd35ca8eb17998c1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a019118f49079e478cd35ca8eb17998c1">drush_process_bootstrap_to_first_arg</a> (&amp;$arguments)</td></tr>
<tr class="memitem:af0c377881e5c9c772f0cad80ea016452"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452">drush_get_commands</a> ($reset=FALSE)</td></tr>
<tr class="memitem:ae2084ed9dd4d1c7a415ebd6f77648567"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae2084ed9dd4d1c7a415ebd6f77648567"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_command_defaults</b> ($key, $commandfile, $path)</td></tr>
<tr class="memitem:aa89380abcf2e406ea2d6fe05d529f2b1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1">drush_command_translate</a> (&amp;$command)</td></tr>
<tr class="memitem:a643622feb3301c9b33e295e7f2bd7804"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804">_drush_command_translate</a> ($source)</td></tr>
<tr class="memitem:aaf301462cb45c0da60e79ea868323858"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858">drush_parse_command</a> ()</td></tr>
<tr class="memitem:a6a908a954cb96c0e4dadb715cd72cae4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a6a908a954cb96c0e4dadb715cd72cae4">_drush_prepare_command</a> (&amp;$command, $arguments=array())</td></tr>
<tr class="memitem:a19eba9666aba673a64fbd78a2c5ef4f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9">drush_command_invoke_all</a> ()</td></tr>
<tr class="memitem:a74995cc76034e90a39baee51111b20be"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be">drush_command_invoke_all_ref</a> ($hook, &amp;$reference_parameter)</td></tr>
<tr class="memitem:a385cd0ff47c30105f965722a81987809"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809">drush_command_implements</a> ($hook)</td></tr>
<tr class="memitem:a727745c7eb5e69dedd5587146c0d0d98"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98">drush_is_command</a> ($command)</td></tr>
<tr class="memitem:ada5bfda5bb64c19886f7253e30a58de2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2">drush_command_normalize_name</a> ($command_name)</td></tr>
<tr class="memitem:ad51d79509a4a134947703f3e58564444"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444">drush_commandfile_list</a> ()</td></tr>
<tr class="memitem:ac68d61ef8f31f37ce1f691c0cacb9379"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac68d61ef8f31f37ce1f691c0cacb9379"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_drush_add_commandfiles</b> ($searchpath, $phase=NULL, $reset=FALSE)</td></tr>
<tr class="memitem:a835a66ae60ec33b87f477a6b3dd00547"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a835a66ae60ec33b87f477a6b3dd00547">drush_filename_blacklist</a> ()</td></tr>
<tr class="memitem:abf0bb730c62cb31e3f74c36d5bc1d01a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#abf0bb730c62cb31e3f74c36d5bc1d01a">drush_command_include</a> ($command)</td></tr>
<tr class="memitem:ab6734905f5908b1f6c22613e7b250ef1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6734905f5908b1f6c22613e7b250ef1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_command_get_includes</b> ($command)</td></tr>
<tr class="memitem:ad5dd93fad069d6ba73b3546d26855071"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#ad5dd93fad069d6ba73b3546d26855071">drush_command_default_options</a> ($command=NULL)</td></tr>
<tr class="memitem:ad05408adc59d4400bdf9e53c4daf9b45"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad05408adc59d4400bdf9e53c4daf9b45"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_sitealias_command_default_options</b> ($site_record, $prefix, $command=NULL)</td></tr>
<tr class="memitem:ab0ce80005667fa4316379e18b1a8d4e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab0ce80005667fa4316379e18b1a8d4e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_command_set_command_specific_options</b> ($prefix, $command=NULL)</td></tr>
<tr class="memitem:ad4a82a5c14292134c662fa96b1736a85"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4a82a5c14292134c662fa96b1736a85"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_command_set_command_specific</b> ($command_default_options, $command=NULL)</td></tr>
<tr class="memitem:ad83394e5ffc3250ab4edfdb546865e36"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad83394e5ffc3250ab4edfdb546865e36"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>_drush_command_set_default_options</b> ($command_default_options, $command)</td></tr>
<tr class="memitem:aed341ec21a59c794b73f7ba031825632"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632">drush_command_get_command_specific_options</a> ($options, $command_name, $prefix= '')</td></tr>
<tr class="memitem:a272d98da256f7ae2988f3aa7cb6b464b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b">drush_get_original_cli_args_and_options</a> ($command=NULL)</td></tr>
<tr class="memitem:a2ce77284c0002dda3a5d0527e583e017"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017">drush_command_hook</a> ($commandfile, $hook)</td></tr>
<tr class="memitem:a43bed68a16ab6c68384132f83bed87d8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a43bed68a16ab6c68384132f83bed87d8">drush_enforce_requirement_bootstrap_phase</a> (&amp;$command)</td></tr>
<tr class="memitem:aecc91d49e1657c1ab4a8b657c2bc54f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#aecc91d49e1657c1ab4a8b657c2bc54f3">drush_enforce_requirement_drush_dependencies</a> (&amp;$command)</td></tr>
<tr class="memitem:a70fb51b1b660ded588045e6fa4bda385"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#a70fb51b1b660ded588045e6fa4bda385">drush_enforce_requirement_core</a> (&amp;$command)</td></tr>
<tr class="memitem:af671cda00f17af8bc39ff470a3844bab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab">drush_shell_alias_replace</a> ()</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>End of "defgroup dispatching".</p>
<p>The drush command engine.</p>
<p>Since drush can be invoked independently of a proper Drupal installation and commands may operate across sites, a distinct command engine is needed.</p>
<p>It mimics the Drupal module engine in order to economize on concepts and to make developing commands as familiar as possible to traditional Drupal module developers. </p>

<p>Definition in file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a643622feb3301c9b33e295e7f2bd7804"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_command_translate </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Helper function for <a class="el" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1">drush_command_translate()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$source</td><td>String or array. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01096">1096</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l01074">drush_command_translate()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_cgraph.png" border="0" usemap="#includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_cgraph" id="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_cgraph">
<area shape="rect" id="node3" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="239,32,276,61"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="327,23,460,70"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="511,32,655,61"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="704,5,899,35"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="737,59,865,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_icgraph.png" border="0" usemap="#includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_icgraph" id="includes_2command_8inc_a643622feb3301c9b33e295e7f2bd7804_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="239,391,412,420"/><area shape="rect" id="node5" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="463,391,612,420"/><area shape="rect" id="node7" href="core_8drush_8inc.html#aa42bc0fdfeb8d31d452fd1b9602d3cf9" title="core_help_complete" alt="" coords="703,5,841,35"/><area shape="rect" id="node9" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="693,59,851,88"/><area shape="rect" id="node11" href="outputformat_8drush_8inc.html#a4a9cc3871032fba8891b665d2606dcc0" title="drush_get_command_format\l_metadata" alt="" coords="679,111,865,158"/><area shape="rect" id="node15" href="topic_8drush_8inc.html#a344ae16f10767b01599d5a0d4ee711e3" title="topic_drush_help_alter" alt="" coords="696,181,848,211"/><area shape="rect" id="node17" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="1213,80,1368,109"/><area shape="rect" id="node19" href="topic_8drush_8inc.html#a6565f0ae92a81e15b374bf7a4147362b" title="drush_get_topics" alt="" coords="712,285,832,315"/><area shape="rect" id="node24" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="1241,133,1340,163"/><area shape="rect" id="node32" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="688,339,856,368"/><area shape="rect" id="node38" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="693,875,851,904"/><area shape="rect" id="node57" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98" title="drush_is_command" alt="" coords="705,928,839,957"/><area shape="rect" id="node59" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="663,821,881,851"/><area shape="rect" id="node66" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1212,816,1369,845"/><area shape="rect" id="node72" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="1212,746,1369,793"/><area shape="rect" id="node75" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="715,524,829,553"/><area shape="rect" id="node108" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="687,981,857,1027"/><area shape="rect" id="node13" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="971,120,1099,149"/><area shape="rect" id="node22" href="topic_8drush_8inc.html#aeb0d8445f69455eb3eebf375b0dbfd50" title="topic_core_topic_complete" alt="" coords="947,285,1123,315"/><area shape="rect" id="node26" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1445,187,1611,216"/><area shape="rect" id="node28" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1465,133,1591,163"/><area shape="rect" id="node30" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1452,80,1604,109"/><area shape="rect" id="node34" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="980,339,1089,368"/><area shape="rect" id="node40" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="961,1014,1108,1061"/><area shape="rect" id="node52" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1443,1166,1613,1213"/><area shape="rect" id="node42" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1217,992,1364,1021"/><area shape="rect" id="node44" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1475,988,1581,1017"/><area shape="rect" id="node46" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1231,869,1351,899"/><area shape="rect" id="node48" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1196,1096,1385,1125"/><area shape="rect" id="node50" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1188,1149,1393,1179"/><area shape="rect" id="node54" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1692,1175,1780,1204"/><area shape="rect" id="node61" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="932,871,1137,918"/><area shape="rect" id="node63" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="1213,922,1368,969"/><area shape="rect" id="node68" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1459,785,1597,815"/><area shape="rect" id="node70" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1661,785,1811,815"/><area shape="rect" id="node77" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="937,616,1132,645"/><area shape="rect" id="node79" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="967,546,1103,593"/><area shape="rect" id="node82" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a9873ccab1bddcd37adaac3403dd37d60" title="drush_bootstrap_to\l_phase" alt="" coords="1224,186,1357,233"/><area shape="rect" id="node87" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="961,493,1108,523"/><area shape="rect" id="node85" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1453,240,1603,269"/><area shape="rect" id="node89" href="config_8drush_8inc.html#a49e0e252235dd709f7151231cf13519e" title="_drush_config_directories\l_complete" alt="" coords="1205,485,1376,531"/><area shape="rect" id="node91" href="config_8drush_8inc.html#af1d1bf8c1e046236ed8df0712af62ff9" title="_drush_config_names\l_complete" alt="" coords="1216,554,1365,601"/><area shape="rect" id="node93" href="core_8drush_8inc.html#acb8d761c0357c377a517a7336c1e4352" title="core_site_install_complete" alt="" coords="1203,624,1379,653"/><area shape="rect" id="node95" href="field_8drush_8inc.html#a3b9c0d18418e620dd2561341c5daf350" title="field_field_create\l_complete" alt="" coords="1231,677,1351,723"/><area shape="rect" id="node97" href="field_8drush_8inc.html#a4c1167a0ddfcac9e81383991832d77c5" title="field_field_complete\l_field_names" alt="" coords="1223,255,1359,302"/><area shape="rect" id="node99" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1220,325,1361,355"/><area shape="rect" id="node101" href="test_8drush_8inc.html#a51877c20991275c2f1b3db7ed15aa82e" title="test_test_run_complete" alt="" coords="1212,379,1369,408"/><area shape="rect" id="node103" href="views_8d8_8drush_8inc.html#ac8dc95a391ef2a77ddaac1e9522086dd" title="_drush_views_complete" alt="" coords="1209,432,1372,461"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6a908a954cb96c0e4dadb715cd72cae4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_prepare_command </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$arguments</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Called by <a class="el" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858">drush_parse_command()</a>. If a command is dispatched directly by <a class="el" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b">drush_dispatch()</a>, then <a class="el" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b">drush_dispatch()</a> will call this function. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01226">1226</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00148">drush_dispatch()</a>, and <a class="el" href="includes_2command_8inc_source.html#l01194">drush_parse_command()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a6a908a954cb96c0e4dadb715cd72cae4_icgraph.png" border="0" usemap="#includes_2command_8inc_a6a908a954cb96c0e4dadb715cd72cae4_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a6a908a954cb96c0e4dadb715cd72cae4_icgraph" id="includes_2command_8inc_a6a908a954cb96c0e4dadb715cd72cae4_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="253,85,363,115"/><area shape="rect" id="node15" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="229,272,387,301"/><area shape="rect" id="node5" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="436,32,591,61"/><area shape="rect" id="node7" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="464,85,563,115"/><area shape="rect" id="node9" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="661,5,827,35"/><area shape="rect" id="node11" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="681,59,807,88"/><area shape="rect" id="node13" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="668,112,820,141"/><area shape="rect" id="node17" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="440,263,587,310"/><area shape="rect" id="node37" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="900,395,1071,442"/><area shape="rect" id="node19" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="671,165,817,195"/><area shape="rect" id="node23" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="691,219,797,248"/><area shape="rect" id="node31" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="684,272,804,301"/><area shape="rect" id="node33" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="649,325,839,355"/><area shape="rect" id="node35" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="641,379,847,408"/><area shape="rect" id="node21" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="932,165,1039,195"/><area shape="rect" id="node25" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="939,219,1032,248"/><area shape="rect" id="node27" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="897,272,1073,301"/><area shape="rect" id="node29" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1124,272,1289,301"/><area shape="rect" id="node39" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1163,404,1251,433"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a59d387101622883fca350211a1c486f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_adjust_args_if_shebang_script </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$args</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Special checking for "shebang" script handling.</p>
<p>If there is a file 'script.php' that begins like so: #!/path/to/drush Then $args will be: /path/to/drush /path/to/script userArg1 userArg2 ... If it instead starts like this: #!/path/to/drush &ndash;flag php-script Then $args will be: /path/to/drush "&amp;ndash;flag php-script" /path/to/script userArg1 userArg2 ... (Note that execve does not split the parameters from the shebang line on whitespace; see <a href="http://en.wikipedia.org/wiki/Shebang_%28Unix%29">http://en.wikipedia.org/wiki/Shebang_%28Unix%29</a>) When drush is called via one of the "shebang" lines above, the first or second parameter will be the full path to the "shebang" script file &ndash; and if the path to the script is in the second position, then we will expect that the argument in the first position must begin with a '@' (alias) or '-' (flag). Under ordinary circumstances, we do not expect that the drush command must come before any argument that is the full path to a file. We use this assumption to detect "shebang" script execution. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l00882">882</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00344">_drush_is_drush_shebang_script()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00539">drush_has_bash()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, and <a class="el" href="context_8inc_source.html#l00591">drush_set_option()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a59d387101622883fca350211a1c486f1_cgraph.png" border="0" usemap="#includes_2command_8inc_a59d387101622883fca350211a1c486f1_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a59d387101622883fca350211a1c486f1_cgraph" id="includes_2command_8inc_a59d387101622883fca350211a1c486f1_cgraph">
<area shape="rect" id="node3" href="drush_8inc.html#a8f5d18c322518e0f31f3fce0f024f2ef" title="_drush_is_drush_shebang\l_script" alt="" coords="197,5,371,51"/><area shape="rect" id="node7" href="includes_2environment_8inc.html#a87a6fcd104950fb9b0d90e25208bcf79" title="drush_has_bash" alt="" coords="225,75,343,104"/><area shape="rect" id="node13" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="220,128,348,157"/><area shape="rect" id="node17" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="224,181,344,211"/><area shape="rect" id="node5" href="drush_8inc.html#a997323f1acad3b9f003118bdcf3540c9" title="_drush_is_drush_shebang_line" alt="" coords="419,13,619,43"/><area shape="rect" id="node9" href="includes_2environment_8inc.html#acb6cf64eca1804a5f5ca34cad6e2c66b" title="drush_is_cygwin" alt="" coords="460,71,577,100"/><area shape="rect" id="node11" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="455,124,583,153"/><area shape="rect" id="node15" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="455,179,583,208"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a59d387101622883fca350211a1c486f1_icgraph.png" border="0" usemap="#includes_2command_8inc_a59d387101622883fca350211a1c486f1_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a59d387101622883fca350211a1c486f1_icgraph" id="includes_2command_8inc_a59d387101622883fca350211a1c486f1_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="197,155,323,184"/><area shape="rect" id="node5" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="385,101,556,131"/><area shape="rect" id="node17" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="372,155,569,184"/><area shape="rect" id="node21" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="392,212,549,241"/><area shape="rect" id="node7" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="653,101,760,131"/><area shape="rect" id="node9" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="899,5,987,35"/><area shape="rect" id="node11" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="844,58,1041,105"/><area shape="rect" id="node13" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="857,127,1028,174"/><area shape="rect" id="node15" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="847,197,1039,243"/><area shape="rect" id="node19" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="632,155,781,184"/><area shape="rect" id="node23" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="620,207,793,254"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad5dd93fad069d6ba73b3546d26855071"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_default_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Conditionally include default options based on the command used. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01506">1506</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00148">drush_dispatch()</a>, <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, and <a class="el" href="context_8inc_source.html#l00223">drush_set_config_special_contexts()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_cgraph.png" border="0" usemap="#includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_cgraph" alt=""/></div>
<map name="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_cgraph" id="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="220,13,348,43"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_icgraph.png" border="0" usemap="#includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_icgraph" alt=""/></div>
<map name="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_icgraph" id="includes_2command_8inc_ad5dd93fad069d6ba73b3546d26855071_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="249,81,359,111"/><area shape="rect" id="node15" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="219,155,389,202"/><area shape="rect" id="node19" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="220,281,388,327"/><area shape="rect" id="node5" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="440,28,595,57"/><area shape="rect" id="node7" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="468,81,567,111"/><area shape="rect" id="node9" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="648,5,813,35"/><area shape="rect" id="node11" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="668,59,793,88"/><area shape="rect" id="node13" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="655,112,807,141"/><area shape="rect" id="node17" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1147,141,1235,171"/><area shape="rect" id="node21" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="455,289,580,319"/><area shape="rect" id="node42" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="437,459,597,488"/><area shape="rect" id="node23" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="645,237,816,267"/><area shape="rect" id="node34" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="1092,403,1289,432"/><area shape="rect" id="node38" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="652,345,809,375"/><area shape="rect" id="node25" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="900,237,1007,267"/><area shape="rect" id="node28" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="1092,194,1289,241"/><area shape="rect" id="node30" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="1105,263,1276,310"/><area shape="rect" id="node32" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="1095,333,1287,379"/><area shape="rect" id="node36" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1339,491,1488,520"/><area shape="rect" id="node40" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="867,341,1040,387"/><area shape="rect" id="node44" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="651,576,811,605"/><area shape="rect" id="node46" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="880,410,1027,457"/><area shape="rect" id="node50" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="877,479,1029,526"/><area shape="rect" id="node52" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="864,549,1043,579"/><area shape="rect" id="node54" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="875,603,1032,632"/><area shape="rect" id="node59" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="888,655,1019,702"/><area shape="rect" id="node61" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="892,725,1015,771"/><area shape="rect" id="node63" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4" title="sql_sql_sync_complete" alt="" coords="875,795,1032,824"/><area shape="rect" id="node48" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1120,456,1261,485"/><area shape="rect" id="node56" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1121,573,1260,603"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aed341ec21a59c794b73f7ba031825632"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_get_command_specific_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$options</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$prefix</em> = <code>''</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return all of the command-specific options defined in the given options set for the specified command name. Note that it is valid to use the command name alias rather than the primary command name, both in the parameter to this function, and in the options set. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01584">1584</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01330">drush_command_normalize_name()</a>.</p>

<p>Referenced by <a class="el" href="backend_8inc_source.html#l00706">drush_backend_invoke_concurrent()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_cgraph.png" border="0" usemap="#includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_cgraph" alt=""/></div>
<map name="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_cgraph" id="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="263,163,481,192"/><area shape="rect" id="node5" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="532,163,681,192"/><area shape="rect" id="node7" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1204,123,1361,152"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1207,5,1359,35"/><area shape="rect" id="node13" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="732,201,905,231"/><area shape="rect" id="node48" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="732,305,905,335"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1897,185,2025,215"/><area shape="rect" id="node15" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1188,253,1377,283"/><area shape="rect" id="node19" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="981,175,1112,204"/><area shape="rect" id="node33" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1264,363,1301,392"/><area shape="rect" id="node44" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="960,329,1133,359"/><area shape="rect" id="node17" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1428,315,1609,344"/><area shape="rect" id="node22" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1227,200,1339,229"/><area shape="rect" id="node26" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1660,211,1815,240"/><area shape="rect" id="node29" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1480,261,1557,291"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1452,367,1585,414"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1665,345,1809,375"/><area shape="rect" id="node39" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1864,345,2059,375"/><area shape="rect" id="node50" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="956,383,1137,412"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_icgraph.png" border="0" usemap="#includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_icgraph" alt=""/></div>
<map name="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_icgraph" id="includes_2command_8inc_aed341ec21a59c794b73f7ba031825632_icgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="261,1035,416,1082"/><area shape="rect" id="node5" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="464,717,616,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="487,1371,593,1400"/><area shape="rect" id="node7" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1193,125,1335,155"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="695,664,844,693"/><area shape="rect" id="node11" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="700,717,839,747"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="696,771,843,800"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="687,824,852,853"/><area shape="rect" id="node17" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="691,877,848,907"/><area shape="rect" id="node19" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="692,1087,847,1134"/><area shape="rect" id="node31" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="689,984,849,1013"/><area shape="rect" id="node33" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="968,585,1075,615"/><area shape="rect" id="node35" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="696,611,843,640"/><area shape="rect" id="node38" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="699,1157,840,1187"/><area shape="rect" id="node40" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="681,1211,857,1240"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="679,1264,860,1293"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="664,1317,875,1347"/><area shape="rect" id="node46" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="693,5,845,35"/><area shape="rect" id="node48" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="709,59,829,88"/><area shape="rect" id="node50" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="687,111,852,158"/><area shape="rect" id="node52" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="936,951,1107,998"/><area shape="rect" id="node56" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1169,440,1359,469"/><area shape="rect" id="node58" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="667,931,872,960"/><area shape="rect" id="node61" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="701,370,837,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="701,231,837,278"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="691,490,848,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="688,301,851,347"/><area shape="rect" id="node21" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="947,1087,1096,1134"/><area shape="rect" id="node23" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1191,1149,1337,1179"/><area shape="rect" id="node27" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1204,1043,1324,1072"/><area shape="rect" id="node29" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1195,1096,1333,1125"/><area shape="rect" id="node25" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1421,1149,1581,1179"/><area shape="rect" id="node54" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1220,960,1308,989"/><area shape="rect" id="node63" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="939,301,1104,347"/><area shape="rect" id="node67" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="951,370,1092,417"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1193,317,1335,347"/><area shape="rect" id="node70" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1179,370,1349,417"/><area shape="rect" id="node72" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1427,370,1576,417"/><area shape="rect" id="node74" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1643,379,1803,408"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="940,231,1103,278"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1196,247,1332,294"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1197,178,1331,225"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="923,499,1120,528"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1189,499,1339,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1409,499,1593,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="723,1371,816,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="681,1424,857,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="939,1424,1104,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2ce77284c0002dda3a5d0527e583e017"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_hook </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$commandfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$hook</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine whether a command file implements a hook.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$module</td><td>The name of the module (without the .module extension). </td></tr>
    <tr><td class="paramname">$hook</td><td>The name of the hook (e.g. "help" or "menu"). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if the the hook is implemented. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01636">1636</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l01300">drush_command_implements()</a>, <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>, and <a class="el" href="engines_8inc_source.html#l00057">drush_get_engines()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a2ce77284c0002dda3a5d0527e583e017_icgraph.png" border="0" usemap="#includes_2command_8inc_a2ce77284c0002dda3a5d0527e583e017_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a2ce77284c0002dda3a5d0527e583e017_icgraph" id="includes_2command_8inc_a2ce77284c0002dda3a5d0527e583e017_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="208,503,400,533"/><area shape="rect" id="node45" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="687,555,836,585"/><area shape="rect" id="node97" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="239,945,369,974"/><area shape="rect" id="node5" href="make_8utilities_8inc.html#a6be8755a0ea68b9198e1e8cebbccff89" title="make_validate_info_file" alt="" coords="457,661,615,690"/><area shape="rect" id="node11" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="477,503,595,533"/><area shape="rect" id="node13" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="455,225,617,272"/><area shape="rect" id="node7" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="685,661,837,690"/><area shape="rect" id="node9" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="673,714,849,743"/><area shape="rect" id="node15" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="939,1001,1080,1030"/><area shape="rect" id="node17" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="1217,27,1327,57"/><area shape="rect" id="node29" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="687,96,836,143"/><area shape="rect" id="node34" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="677,234,845,263"/><area shape="rect" id="node19" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="1427,131,1581,161"/><area shape="rect" id="node21" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="1455,78,1553,107"/><area shape="rect" id="node23" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1633,442,1799,471"/><area shape="rect" id="node25" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1653,51,1779,81"/><area shape="rect" id="node27" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1640,105,1792,134"/><area shape="rect" id="node31" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="925,27,1093,57"/><area shape="rect" id="node37" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="1199,285,1345,332"/><area shape="rect" id="node41" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1425,846,1583,875"/><area shape="rect" id="node39" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1444,465,1564,494"/><area shape="rect" id="node43" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1647,877,1785,906"/><area shape="rect" id="node47" href="core_8drush_8inc.html#aa42bc0fdfeb8d31d452fd1b9602d3cf9" title="core_help_complete" alt="" coords="940,582,1079,611"/><area shape="rect" id="node49" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="931,635,1088,665"/><area shape="rect" id="node51" href="outputformat_8drush_8inc.html#a4a9cc3871032fba8891b665d2606dcc0" title="drush_get_command_format\l_metadata" alt="" coords="916,389,1103,436"/><area shape="rect" id="node55" href="topic_8drush_8inc.html#a344ae16f10767b01599d5a0d4ee711e3" title="topic_drush_help_alter" alt="" coords="933,689,1085,718"/><area shape="rect" id="node58" href="topic_8drush_8inc.html#a6565f0ae92a81e15b374bf7a4147362b" title="drush_get_topics" alt="" coords="949,182,1069,211"/><area shape="rect" id="node65" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="931,337,1088,366"/><area shape="rect" id="node70" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98" title="drush_is_command" alt="" coords="943,742,1076,771"/><area shape="rect" id="node72" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="900,529,1119,558"/><area shape="rect" id="node77" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="1425,899,1583,945"/><area shape="rect" id="node80" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="952,846,1067,875"/><area shape="rect" id="node95" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="924,459,1095,505"/><area shape="rect" id="node53" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="1208,475,1336,505"/><area shape="rect" id="node61" href="topic_8drush_8inc.html#aeb0d8445f69455eb3eebf375b0dbfd50" title="topic_core_topic_complete" alt="" coords="1184,233,1360,262"/><area shape="rect" id="node68" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1187,405,1357,452"/><area shape="rect" id="node74" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="1169,528,1375,575"/><area shape="rect" id="node82" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="1175,1062,1369,1091"/><area shape="rect" id="node84" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1204,776,1340,823"/><area shape="rect" id="node87" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a9873ccab1bddcd37adaac3403dd37d60" title="drush_bootstrap_to\l_phase" alt="" coords="1437,716,1571,763"/><area shape="rect" id="node90" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="1199,846,1345,875"/><area shape="rect" id="node99" href="pm_8drush_8inc.html#a7a7640133c515e06c96d0f4262b98c51" title="drush_pm_include_version\l_control" alt="" coords="673,952,849,999"/><area shape="rect" id="node102" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31" title="drush_version_control\l_reserved_files" alt="" coords="687,1021,836,1068"/><area shape="rect" id="node105" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="935,1053,1084,1100"/><area shape="rect" id="node107" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="449,607,623,637"/><area shape="rect" id="node110" href="engines_8inc.html#a434593aa5eee4a2a9e6e51cdca8ccab5" title="drush_engine_topic\l_command" alt="" coords="469,1024,603,1071"/><area shape="rect" id="node112" href="engines_8inc.html#af360562cce71af9828bbbb7326b1d7a8" title="drush_load_engine" alt="" coords="696,879,827,909"/><area shape="rect" id="node116" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="463,971,609,1001"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a385cd0ff47c30105f965722a81987809"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_implements </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$hook</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine which command files are implementing a hook.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$hook</td><td>The name of the hook (e.g. "drush_help" or "drush_command").</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array with the names of the command files which are implementing this hook. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01300">1300</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01636">drush_command_hook()</a>, and <a class="el" href="includes_2command_8inc_source.html#l01355">drush_commandfile_list()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00197">drush_command()</a>, <a class="el" href="includes_2command_8inc_source.html#l01267">drush_command_invoke_all_ref()</a>, and <a class="el" href="make_8utilities_8inc_source.html#l00165">make_validate_info_file()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_cgraph.png" border="0" usemap="#includes_2command_8inc_a385cd0ff47c30105f965722a81987809_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_cgraph" id="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="249,5,401,35"/><area shape="rect" id="node5" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="247,59,404,88"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="455,59,583,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_icgraph.png" border="0" usemap="#includes_2command_8inc_a385cd0ff47c30105f965722a81987809_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_icgraph" id="includes_2command_8inc_a385cd0ff47c30105f965722a81987809_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="268,96,385,125"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="245,149,408,195"/><area shape="rect" id="node109" href="make_8utilities_8inc.html#a6be8755a0ea68b9198e1e8cebbccff89" title="make_validate_info_file" alt="" coords="900,1053,1057,1083"/><area shape="rect" id="node7" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="471,105,612,135"/><area shape="rect" id="node9" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="924,127,1033,156"/><area shape="rect" id="node21" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="467,35,616,82"/><area shape="rect" id="node32" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="457,299,625,328"/><area shape="rect" id="node11" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="1115,101,1269,131"/><area shape="rect" id="node13" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="1143,316,1241,345"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1341,473,1507,503"/><area shape="rect" id="node17" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1361,316,1487,345"/><area shape="rect" id="node19" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1348,420,1500,449"/><area shape="rect" id="node23" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="676,105,844,135"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b" title="drush_get_original\l_cli_args_and_options" alt="" coords="685,35,835,82"/><area shape="rect" id="node28" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="909,59,1048,88"/><area shape="rect" id="node30" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="909,5,1048,35"/><area shape="rect" id="node34" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0" title="_drush_backend_get\l_global_contexts" alt="" coords="689,658,831,705"/><area shape="rect" id="node72" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a" title="_drush_backend_classify\l_options" alt="" coords="676,555,844,602"/><area shape="rect" id="node76" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="1119,858,1265,905"/><area shape="rect" id="node83" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1587,160,1744,189"/><area shape="rect" id="node89" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="691,259,829,306"/><area shape="rect" id="node91" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="895,199,1063,246"/><area shape="rect" id="node36" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="901,666,1056,713"/><area shape="rect" id="node38" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="1116,680,1268,709"/><area shape="rect" id="node64" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1371,1001,1477,1031"/><area shape="rect" id="node40" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1353,631,1495,660"/><area shape="rect" id="node42" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1349,684,1499,713"/><area shape="rect" id="node44" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1355,577,1493,607"/><area shape="rect" id="node47" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1612,841,1719,871"/><area shape="rect" id="node49" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1351,895,1497,924"/><area shape="rect" id="node53" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1364,841,1484,871"/><area shape="rect" id="node55" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1580,517,1751,563"/><area shape="rect" id="node59" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1329,948,1519,977"/><area shape="rect" id="node61" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1321,737,1527,767"/><area shape="rect" id="node57" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1859,525,1947,555"/><area shape="rect" id="node66" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1619,1113,1712,1143"/><area shape="rect" id="node68" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1577,1027,1753,1056"/><area shape="rect" id="node70" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1820,1027,1985,1056"/><area shape="rect" id="node85" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1833,160,1972,189"/><area shape="rect" id="node87" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="2051,187,2200,216"/><area shape="rect" id="node93" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="1129,208,1255,237"/><area shape="rect" id="node102" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1112,155,1272,184"/><area shape="rect" id="node95" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="1339,108,1509,137"/><area shape="rect" id="node97" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="1804,213,2001,243"/><area shape="rect" id="node100" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="1345,161,1503,191"/><area shape="rect" id="node104" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="1344,55,1504,84"/><area shape="rect" id="node111" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="1116,1113,1268,1143"/><area shape="rect" id="node114" href="generate_8contents_8make_8inc.html#ae22e86e5816853f66923925aa90164e1" title="make_generate_from\l_makefile" alt="" coords="1352,1105,1496,1151"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abf0bb730c62cb31e3f74c36d5bc1d01a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_include </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Conditionally include files based on the command used.</p>
<p>Steps through each of the currently loaded commandfiles and loads an optional commandfile based on the key.</p>
<p>When a command such as 'pm-enable' is called, this function will find all 'enable.pm.inc' files that are present in each of the commandfile directories. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01479">1479</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_cgraph.png" border="0" usemap="#includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_cgraph" alt=""/></div>
<map name="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_cgraph" id="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_cgraph">
<area shape="rect" id="node3" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="339,14,416,43"/><area shape="rect" id="node10" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="223,71,260,101"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="732,22,860,51"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="495,22,649,51"/><area shape="rect" id="node12" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="311,67,444,113"/><area shape="rect" id="node14" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="500,75,644,105"/><area shape="rect" id="node16" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="699,75,893,105"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_icgraph.png" border="0" usemap="#includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_icgraph" alt=""/></div>
<map name="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_icgraph" id="includes_2command_8inc_abf0bb730c62cb31e3f74c36d5bc1d01a_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="223,5,369,35"/><area shape="rect" id="node5" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="420,5,537,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a19eba9666aba673a64fbd78a2c5ef4f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_invoke_all </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoke a hook in all available command files that implement it.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be">drush_command_invoke_all_ref()</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$hook</td><td>The name of the hook to invoke. </td></tr>
    <tr><td class="paramname">...</td><td>Arguments to pass to the hook. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array of return values of the hook implementations. If commands return arrays from their implementations, those are merged into one array. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01251">1251</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>Referenced by <a class="el" href="includes_2cache_8inc_source.html#l00166">drush_cache_get_bins()</a>, <a class="el" href="complete_8inc_source.html#l00497">drush_complete_rebuild_arguments()</a>, <a class="el" href="engines_8inc_source.html#l00326">drush_engine_topic_command()</a>, <a class="el" href="engines_8inc_source.html#l00013">drush_get_engine_types_info()</a>, <a class="el" href="notify_8drush_8inc_source.html#l00088">drush_notify_command_message()</a>, <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="sql_8drush_8inc_source.html#l00537">drush_sql_sanitize()</a>, and <a class="el" href="updatecode_8pm_8inc_source.html#l00366">pm_update_finish()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a19eba9666aba673a64fbd78a2c5ef4f9_icgraph.png" border="0" usemap="#includes_2command_8inc_a19eba9666aba673a64fbd78a2c5ef4f9_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a19eba9666aba673a64fbd78a2c5ef4f9_icgraph" id="includes_2command_8inc_a19eba9666aba673a64fbd78a2c5ef4f9_icgraph">
<area shape="rect" id="node3" href="includes_2cache_8inc.html#a4338413ce68582b943bb07b81da7af7a" title="drush_cache_get_bins" alt="" coords="257,29,409,59"/><area shape="rect" id="node7" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="255,106,412,153"/><area shape="rect" id="node11" href="engines_8inc.html#a434593aa5eee4a2a9e6e51cdca8ccab5" title="drush_engine_topic\l_command" alt="" coords="728,329,861,375"/><area shape="rect" id="node13" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="239,224,428,253"/><area shape="rect" id="node25" href="notify_8drush_8inc.html#a17c65f5ac8c57166084cdbd157b28782" title="drush_notify_command\l_message" alt="" coords="255,443,412,490"/><area shape="rect" id="node29" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="495,512,636,541"/><area shape="rect" id="node34" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="277,1288,389,1317"/><area shape="rect" id="node102" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="268,1341,399,1371"/><area shape="rect" id="node104" href="updatecode_8pm_8inc.html#af30934cd040bba74ca1b7c51796bd2aa" title="pm_update_finish" alt="" coords="272,1395,395,1424"/><area shape="rect" id="node5" href="includes_2cache_8inc.html#a320b19400992c01f88bd71db140da5bc" title="drush_cache_clear_all" alt="" coords="491,5,640,35"/><area shape="rect" id="node9" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="496,59,635,88"/><area shape="rect" id="node15" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="500,285,631,315"/><area shape="rect" id="node17" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="708,193,881,223"/><area shape="rect" id="node20" href="engines_8inc.html#ad7c7ef01f88180e6010e2d2cbb24b347" title="drush_get_engine_topics" alt="" coords="483,163,648,192"/><area shape="rect" id="node23" href="engines_8inc.html#a4f5313a2d79cd6fbcde3d30b361e306e" title="drush_engine_add_help\l_topics" alt="" coords="487,215,644,262"/><area shape="rect" id="node27" href="notify_8drush_8inc.html#af572d593a2ac7c62058eccf211751d45" title="drush_notify_shutdown\l_error" alt="" coords="488,389,643,435"/><area shape="rect" id="node31" href="notify_8drush_8inc.html#aa3b05a4a16083977b8616c2404a045fc" title="notify_drush_exit" alt="" coords="505,459,625,488"/><area shape="rect" id="node36" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="495,1181,636,1211"/><area shape="rect" id="node38" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="491,1235,640,1264"/><area shape="rect" id="node40" href="config_8drush_8inc.html#a1ff3fe58ce20c0bc66bfa0a5657546f2" title="drush_config_list" alt="" coords="505,1288,625,1317"/><area shape="rect" id="node42" href="config_8drush_8inc.html#a445c382afd7d7b9e7f6a7bad268c0d4d" title="drush_config_set" alt="" coords="505,1341,625,1371"/><area shape="rect" id="node44" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="504,1395,627,1424"/><area shape="rect" id="node46" href="config_8drush_8inc.html#ac1bfb8fb33a150037b4151fc96fdd413" title="drush_config_get_object" alt="" coords="484,1448,647,1477"/><area shape="rect" id="node48" href="config_8drush_8inc.html#a94f2786e14faf36d88449bef68350678" title="drush_config_get_value" alt="" coords="487,1501,644,1531"/><area shape="rect" id="node50" href="core_8drush_8inc.html#aa4653becec42d140691bb014e52e8145" title="drush_core_cron" alt="" coords="507,1555,624,1584"/><area shape="rect" id="node52" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="483,1608,648,1637"/><area shape="rect" id="node54" href="core_8drush_8inc.html#a318e7d1eefff92580b72fca9d6623939" title="drush_core_php_script" alt="" coords="489,1661,641,1691"/><area shape="rect" id="node56" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="491,1765,640,1795"/><area shape="rect" id="node58" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="703,1740,887,1769"/><area shape="rect" id="node61" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="496,1819,635,1848"/><area shape="rect" id="node63" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="487,1872,644,1901"/><area shape="rect" id="node65" href="commands_2core_2drupal_2environment_8inc.html#adb63382201b7c62d39825a77015cf2fc" title="drush_module_disable" alt="" coords="491,1925,640,1955"/><area shape="rect" id="node67" href="commands_2core_2drupal_2environment_8inc.html#a877e6dae2dc5b4ddd718f5a1ddb74cbc" title="drush_theme_disable" alt="" coords="493,1979,637,2008"/><area shape="rect" id="node69" href="includes_2environment_8inc.html#accdd70b0d8ea4f41c26f87348488ee83" title="_drush_postmortem" alt="" coords="497,2032,633,2061"/><area shape="rect" id="node71" href="includes_2environment_8inc.html#a92afdf9afda25ac6d226ba45f6f1fbe0" title="drush_directory_cache" alt="" coords="489,2085,641,2115"/><area shape="rect" id="node73" href="update_8inc.html#a7037652ade962feda993c9ddd041a950" title="drush_update_do_one" alt="" coords="491,2139,640,2168"/><area shape="rect" id="node75" href="update__6_8inc.html#ad074fc63b51c042f4d752543db9ad0e6" title="updatedb_status" alt="" coords="507,2192,624,2221"/><area shape="rect" id="node77" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="485,2245,645,2275"/><area shape="rect" id="node79" href="notify_8drush_8inc.html#a671bf218a111ec39d0f0fc2919e64daf" title="drush_notify_send_text" alt="" coords="487,565,644,595"/><area shape="rect" id="node81" href="notify_8drush_8inc.html#a1cf454258746f8e8a83c5fa9b9a91426" title="drush_notify_send_audio" alt="" coords="483,619,648,648"/><area shape="rect" id="node83" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="492,671,639,718"/><area shape="rect" id="node85" href="sitealias_8drush_8inc.html#a80c6f0bc5ddf5b7fcf6a611f012d40c5" title="drush_sitealias_site\l_set_validate" alt="" coords="497,741,633,787"/><area shape="rect" id="node87" href="sitealias_8drush_8inc.html#a617aa7e74fc3c55cb99263a84e414466" title="drush_sitealias_site_set" alt="" coords="484,861,647,891"/><area shape="rect" id="node89" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="496,915,635,944"/><area shape="rect" id="node91" href="state_8drush_8inc.html#ab772d29dd372d890751f69e7f23940bd" title="drush_state_set" alt="" coords="508,968,623,997"/><area shape="rect" id="node93" href="test_8drush_8inc.html#ae25259420aa03c34eddc837befcf0df4" title="simpletest_drush_run_test" alt="" coords="479,1021,652,1051"/><area shape="rect" id="node95" href="usage_8drush_8inc.html#a315af941461f0a0d3b4ec1c5063d94ac" title="drush_usage_send" alt="" coords="500,1075,631,1104"/><area shape="rect" id="node97" href="usage_8drush_8inc.html#ab9ed81c63a7f92ea9336314205780bd0" title="drush_usage_show" alt="" coords="499,1128,632,1157"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a74995cc76034e90a39baee51111b20be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_invoke_all_ref </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$hook</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$reference_parameter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A <a class="el" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9">drush_command_invoke_all()</a> that wants the first parameter to be passed by reference.</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9">drush_command_invoke_all()</a> </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01267">1267</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01300">drush_command_implements()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00624">_drush_get_command_options()</a>, <a class="el" href="includes_2command_8inc_source.html#l00148">drush_dispatch()</a>, <a class="el" href="drush_8inc_source.html#l00255">drush_get_global_options()</a>, and <a class="el" href="download_8pm_8inc_source.html#l00082">drush_pm_download()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_cgraph.png" border="0" usemap="#includes_2command_8inc_a74995cc76034e90a39baee51111b20be_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_cgraph" id="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="216,32,408,61"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="460,5,612,35"/><area shape="rect" id="node7" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="457,59,615,88"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="665,59,793,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_icgraph.png" border="0" usemap="#includes_2command_8inc_a74995cc76034e90a39baee51111b20be_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_icgraph" id="includes_2command_8inc_a74995cc76034e90a39baee51111b20be_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="227,798,376,845"/><area shape="rect" id="node7" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="684,745,793,775"/><area shape="rect" id="node26" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="217,915,385,944"/><area shape="rect" id="node113" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="231,968,372,997"/><area shape="rect" id="node5" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="436,803,604,832"/><area shape="rect" id="node19" href="includes_2command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b" title="drush_get_original\l_cli_args_and_options" alt="" coords="445,678,595,725"/><area shape="rect" id="node9" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="875,499,1029,528"/><area shape="rect" id="node11" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="903,85,1001,115"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1101,112,1267,141"/><area shape="rect" id="node15" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1121,5,1247,35"/><area shape="rect" id="node17" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1108,59,1260,88"/><area shape="rect" id="node21" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="669,636,808,665"/><area shape="rect" id="node23" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="669,689,808,719"/><area shape="rect" id="node28" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0" title="_drush_backend_get\l_global_contexts" alt="" coords="449,906,591,953"/><area shape="rect" id="node76" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a" title="_drush_backend_classify\l_options" alt="" coords="436,975,604,1022"/><area shape="rect" id="node80" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="879,849,1025,895"/><area shape="rect" id="node87" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1347,1237,1504,1267"/><area shape="rect" id="node93" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="451,1045,589,1091"/><area shape="rect" id="node95" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="655,1117,823,1163"/><area shape="rect" id="node30" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="661,906,816,953"/><area shape="rect" id="node32" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="876,552,1028,581"/><area shape="rect" id="node70" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1131,1027,1237,1056"/><area shape="rect" id="node34" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1113,552,1255,581"/><area shape="rect" id="node36" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="1109,605,1259,635"/><area shape="rect" id="node38" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="1115,659,1253,688"/><area shape="rect" id="node40" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="1111,165,1257,195"/><area shape="rect" id="node43" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="1105,219,1263,248"/><area shape="rect" id="node45" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="1107,322,1261,369"/><area shape="rect" id="node47" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="1104,392,1264,421"/><area shape="rect" id="node49" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1372,492,1479,521"/><area shape="rect" id="node51" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="1111,712,1257,741"/><area shape="rect" id="node54" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="1113,445,1255,475"/><area shape="rect" id="node56" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="1096,499,1272,528"/><area shape="rect" id="node59" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1124,923,1244,952"/><area shape="rect" id="node61" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1340,807,1511,854"/><area shape="rect" id="node65" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1089,869,1279,899"/><area shape="rect" id="node67" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="1081,816,1287,845"/><area shape="rect" id="node63" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1619,816,1707,845"/><area shape="rect" id="node72" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="1379,973,1472,1003"/><area shape="rect" id="node74" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="1337,1027,1513,1056"/><area shape="rect" id="node89" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1593,1211,1732,1240"/><area shape="rect" id="node91" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1811,1171,1960,1200"/><area shape="rect" id="node97" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="889,1128,1015,1157"/><area shape="rect" id="node106" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="872,1216,1032,1245"/><area shape="rect" id="node99" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="1099,1131,1269,1160"/><area shape="rect" id="node101" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="1564,1131,1761,1160"/><area shape="rect" id="node104" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="1105,1184,1263,1213"/><area shape="rect" id="node108" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="1104,1237,1264,1267"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ada5bfda5bb64c19886f7253e30a58de2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_normalize_name </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command_name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td>name of command or command alias.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>string Primary name of command. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01330">1330</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l01584">drush_command_get_command_specific_options()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_cgraph.png" border="0" usemap="#includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_cgraph" alt=""/></div>
<map name="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_cgraph" id="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="276,163,425,192"/><area shape="rect" id="node5" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="948,123,1105,152"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="951,5,1103,35"/><area shape="rect" id="node11" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="476,201,649,231"/><area shape="rect" id="node46" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="476,305,649,335"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1641,185,1769,215"/><area shape="rect" id="node13" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="932,253,1121,283"/><area shape="rect" id="node17" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="725,175,856,204"/><area shape="rect" id="node31" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1008,363,1045,392"/><area shape="rect" id="node42" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="704,329,877,359"/><area shape="rect" id="node15" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1172,315,1353,344"/><area shape="rect" id="node20" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="971,200,1083,229"/><area shape="rect" id="node24" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1404,211,1559,240"/><area shape="rect" id="node27" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1224,261,1301,291"/><area shape="rect" id="node33" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1196,367,1329,414"/><area shape="rect" id="node35" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1409,345,1553,375"/><area shape="rect" id="node37" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1608,345,1803,375"/><area shape="rect" id="node48" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="700,383,881,412"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_icgraph.png" border="0" usemap="#includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_icgraph" alt=""/></div>
<map name="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_icgraph" id="includes_2command_8inc_ada5bfda5bb64c19886f7253e30a58de2_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="276,1035,481,1082"/><area shape="rect" id="node5" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="531,1035,685,1082"/><area shape="rect" id="node7" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="733,717,885,747"/><area shape="rect" id="node97" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="756,1371,863,1400"/><area shape="rect" id="node9" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1463,125,1604,155"/><area shape="rect" id="node11" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="964,664,1113,693"/><area shape="rect" id="node13" href="config_8drush_8inc.html#aef4c2b9a90b1297e0e60e741bace5a4e" title="drush_config_import" alt="" coords="969,717,1108,747"/><area shape="rect" id="node15" href="core_8drush_8inc.html#a496a7a4d064f54c13fc03c1c6e2844f4" title="drush_core_updatedb" alt="" coords="965,771,1112,800"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="956,824,1121,853"/><area shape="rect" id="node19" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="960,877,1117,907"/><area shape="rect" id="node21" href="commands_2core_2drupal_2batch_8inc.html#aaf9128a2dbd643871368ffdc18216a76" title="_drush_backend_batch\l_process" alt="" coords="961,1087,1116,1134"/><area shape="rect" id="node33" href="migrate_8d8_8drush_8inc.html#a3197cf2ac638ec4b04a4e05ba0917cb6" title="drush_migrate_manifest" alt="" coords="959,984,1119,1013"/><area shape="rect" id="node35" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="1237,585,1344,615"/><area shape="rect" id="node37" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="965,611,1112,640"/><area shape="rect" id="node40" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="968,1157,1109,1187"/><area shape="rect" id="node42" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="951,1211,1127,1240"/><area shape="rect" id="node44" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="948,1264,1129,1293"/><area shape="rect" id="node46" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="933,1317,1144,1347"/><area shape="rect" id="node48" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="963,5,1115,35"/><area shape="rect" id="node50" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="979,59,1099,88"/><area shape="rect" id="node52" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="956,111,1121,158"/><area shape="rect" id="node54" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1205,951,1376,998"/><area shape="rect" id="node58" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1439,440,1628,469"/><area shape="rect" id="node60" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="936,931,1141,960"/><area shape="rect" id="node63" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="971,370,1107,417"/><area shape="rect" id="node76" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="971,231,1107,278"/><area shape="rect" id="node86" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="960,490,1117,537"/><area shape="rect" id="node95" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="957,301,1120,347"/><area shape="rect" id="node23" href="includes_2batch_8inc.html#a706c51a974d149cdc701f47f9843143b" title="drush_backend_batch\l_process" alt="" coords="1216,1087,1365,1134"/><area shape="rect" id="node25" href="commands_2pm_2update__info_2drupal_8inc.html#afa1132bbe8f4d56b787a9a93d4971871" title="_pm_get_update_info" alt="" coords="1460,1149,1607,1179"/><area shape="rect" id="node29" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1473,1043,1593,1072"/><area shape="rect" id="node31" href="update_8inc.html#acb7719984816f5c3fcf003a93e8a9947" title="drush_update_batch" alt="" coords="1464,1096,1603,1125"/><area shape="rect" id="node27" href="updatestatus_8pm_8inc.html#a3572a412477acf53f0917d723fdfa3d9" title="drush_pm_updatestatus" alt="" coords="1691,1149,1851,1179"/><area shape="rect" id="node56" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1489,960,1577,989"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a597ef7478691e3e37d253d5617553b7e" title="_drush_sitealias_prepare\l_record" alt="" coords="1208,301,1373,347"/><area shape="rect" id="node69" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1220,370,1361,417"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1463,317,1604,347"/><area shape="rect" id="node72" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1448,370,1619,417"/><area shape="rect" id="node74" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1696,370,1845,417"/><area shape="rect" id="node79" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="1209,231,1372,278"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1465,247,1601,294"/><area shape="rect" id="node84" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="1467,178,1600,225"/><area shape="rect" id="node89" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1192,499,1389,528"/><area shape="rect" id="node91" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1459,499,1608,528"/><area shape="rect" id="node93" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="1679,499,1863,528"/><area shape="rect" id="node99" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="992,1371,1085,1400"/><area shape="rect" id="node101" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="951,1424,1127,1453"/><area shape="rect" id="node103" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1208,1424,1373,1453"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa89380abcf2e406ea2d6fe05d529f2b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command_translate </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Translates description and other keys of a command definition.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$command</td><td>A command definition. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01074">1074</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01096">_drush_command_translate()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_cgraph.png" border="0" usemap="#includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_cgraph" alt=""/></div>
<map name="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_cgraph" id="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="231,32,412,61"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="463,32,500,61"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="551,23,684,70"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="735,32,879,61"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="928,5,1123,35"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="961,59,1089,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_icgraph.png" border="0" usemap="#includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_icgraph" alt=""/></div>
<map name="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_icgraph" id="includes_2command_8inc_aa89380abcf2e406ea2d6fe05d529f2b1_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="231,391,380,420"/><area shape="rect" id="node5" href="core_8drush_8inc.html#aa42bc0fdfeb8d31d452fd1b9602d3cf9" title="core_help_complete" alt="" coords="471,5,609,35"/><area shape="rect" id="node7" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="461,59,619,88"/><area shape="rect" id="node9" href="outputformat_8drush_8inc.html#a4a9cc3871032fba8891b665d2606dcc0" title="drush_get_command_format\l_metadata" alt="" coords="447,111,633,158"/><area shape="rect" id="node13" href="topic_8drush_8inc.html#a344ae16f10767b01599d5a0d4ee711e3" title="topic_drush_help_alter" alt="" coords="464,181,616,211"/><area shape="rect" id="node15" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="981,17,1136,47"/><area shape="rect" id="node17" href="topic_8drush_8inc.html#a6565f0ae92a81e15b374bf7a4147362b" title="drush_get_topics" alt="" coords="480,285,600,315"/><area shape="rect" id="node22" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="1009,71,1108,100"/><area shape="rect" id="node30" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="456,339,624,368"/><area shape="rect" id="node36" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="461,771,619,800"/><area shape="rect" id="node55" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98" title="drush_is_command" alt="" coords="473,877,607,907"/><area shape="rect" id="node57" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="431,824,649,853"/><area shape="rect" id="node64" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="980,807,1137,836"/><area shape="rect" id="node70" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="980,737,1137,783"/><area shape="rect" id="node73" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="483,524,597,553"/><area shape="rect" id="node108" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="455,930,625,977"/><area shape="rect" id="node11" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="739,120,867,149"/><area shape="rect" id="node20" href="topic_8drush_8inc.html#aeb0d8445f69455eb3eebf375b0dbfd50" title="topic_core_topic_complete" alt="" coords="715,285,891,315"/><area shape="rect" id="node24" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1213,124,1379,153"/><area shape="rect" id="node26" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1233,71,1359,100"/><area shape="rect" id="node28" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1220,17,1372,47"/><area shape="rect" id="node32" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="748,339,857,368"/><area shape="rect" id="node38" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="729,935,876,982"/><area shape="rect" id="node50" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1211,978,1381,1025"/><area shape="rect" id="node40" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="985,1020,1132,1049"/><area shape="rect" id="node42" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1243,1152,1349,1181"/><area shape="rect" id="node44" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="999,860,1119,889"/><area shape="rect" id="node46" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="964,967,1153,996"/><area shape="rect" id="node48" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="956,913,1161,943"/><area shape="rect" id="node52" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1460,987,1548,1016"/><area shape="rect" id="node59" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="700,1149,905,1195"/><area shape="rect" id="node61" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="981,1174,1136,1221"/><area shape="rect" id="node66" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1227,776,1365,805"/><area shape="rect" id="node68" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1429,776,1579,805"/><area shape="rect" id="node75" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="705,616,900,645"/><area shape="rect" id="node77" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="735,546,871,593"/><area shape="rect" id="node80" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a9873ccab1bddcd37adaac3403dd37d60" title="drush_bootstrap_to\l_phase" alt="" coords="992,123,1125,170"/><area shape="rect" id="node85" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="729,493,876,523"/><area shape="rect" id="node83" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1221,177,1371,207"/><area shape="rect" id="node87" href="config_8drush_8inc.html#a49e0e252235dd709f7151231cf13519e" title="_drush_config_directories\l_complete" alt="" coords="973,193,1144,239"/><area shape="rect" id="node89" href="config_8drush_8inc.html#af1d1bf8c1e046236ed8df0712af62ff9" title="_drush_config_names\l_complete" alt="" coords="984,262,1133,309"/><area shape="rect" id="node91" href="core_8drush_8inc.html#acb8d761c0357c377a517a7336c1e4352" title="core_site_install_complete" alt="" coords="971,332,1147,361"/><area shape="rect" id="node93" href="field_8drush_8inc.html#a3b9c0d18418e620dd2561341c5daf350" title="field_field_create\l_complete" alt="" coords="999,385,1119,431"/><area shape="rect" id="node95" href="field_8drush_8inc.html#a4c1167a0ddfcac9e81383991832d77c5" title="field_field_complete\l_field_names" alt="" coords="991,454,1127,501"/><area shape="rect" id="node97" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="988,524,1129,553"/><area shape="rect" id="node99" href="test_8drush_8inc.html#a51877c20991275c2f1b3db7ed15aa82e" title="test_test_run_complete" alt="" coords="980,577,1137,607"/><area shape="rect" id="node101" href="views_8d8_8drush_8inc.html#ac8dc95a391ef2a77ddaac1e9522086dd" title="_drush_views_complete" alt="" coords="977,631,1140,660"/><area shape="rect" id="node103" href="group__extensions.html#ga7a2fb27ecd55a327d27d97a59a62c2d6" title="pm_complete_extensions" alt="" coords="973,684,1144,713"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad51d79509a4a134947703f3e58564444"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_commandfile_list </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Collect a list of all available drush command files.</p>
<p>Scans the following paths for drush command files:</p>
<ul>
<li>The "/path/to/drush/commands" folder.</li>
<li>Folders listed in the 'include' option (see <a class="el" href="example_8drushrc_8php.html">example.drushrc.php</a>).</li>
<li>The system-wide drush commands folder, e.g. /usr/share/drush/commands</li>
<li>The ".drush" folder in the user's HOME folder.</li>
<li>/drush and sites/all/drush in current Drupal site.</li>
<li>Folders belonging to enabled modules in the current Drupal site.</li>
</ul>
<p>A Drush command file is a file that matches "*.drush.inc".</p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82">drush_scan_directory()</a></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>An associative array whose keys and values are the names of all available command files. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01355">1355</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00285">_drush_invoke_hooks()</a>, <a class="el" href="includes_2command_8inc_source.html#l01300">drush_command_implements()</a>, <a class="el" href="docs_8drush_8inc_source.html#l00201">drush_docs_errorcodes()</a>, <a class="el" href="includes_2command_8inc_source.html#l01670">drush_enforce_requirement_drush_dependencies()</a>, <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>, <a class="el" href="engines_8inc_source.html#l00057">drush_get_engines()</a>, and <a class="el" href="commandUnitTest_8php_source.html#l00009">Unish\commandUnitCase\testCommandVersionSpecific()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_cgraph.png" border="0" usemap="#includes_2command_8inc_ad51d79509a4a134947703f3e58564444_cgraph" alt=""/></div>
<map name="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_cgraph" id="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="215,5,343,35"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_icgraph.png" border="0" usemap="#includes_2command_8inc_ad51d79509a4a134947703f3e58564444_icgraph" alt=""/></div>
<map name="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_icgraph" id="includes_2command_8inc_ad51d79509a4a134947703f3e58564444_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="240,295,387,324"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="217,348,409,377"/><area shape="rect" id="node46" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="944,5,1101,35"/><area shape="rect" id="node48" href="includes_2command_8inc.html#aecc91d49e1657c1ab4a8b657c2bc54f3" title="drush_enforce_requirement\l_drush_dependencies" alt="" coords="224,401,403,447"/><area shape="rect" id="node50" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="700,469,849,499"/><area shape="rect" id="node92" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="248,1015,379,1044"/><area shape="rect" id="node117" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="215,1067,412,1114"/><area shape="rect" id="node5" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="491,295,608,324"/><area shape="rect" id="node10" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="468,830,631,877"/><area shape="rect" id="node40" href="make_8utilities_8inc.html#a6be8755a0ea68b9198e1e8cebbccff89" title="make_validate_info_file" alt="" coords="471,348,628,377"/><area shape="rect" id="node12" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="700,830,849,877"/><area shape="rect" id="node16" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="1231,912,1340,941"/><area shape="rect" id="node29" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="691,777,859,807"/><area shape="rect" id="node38" href="download_8pm_8inc.html#a802dd9a63e5ab3a3a8472d4635d3c662" title="drush_pm_download" alt="" coords="952,1063,1093,1092"/><area shape="rect" id="node14" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="939,896,1107,925"/><area shape="rect" id="node18" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="1439,364,1593,393"/><area shape="rect" id="node20" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="1467,764,1565,793"/><area shape="rect" id="node22" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="1644,711,1809,740"/><area shape="rect" id="node24" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="1664,764,1789,793"/><area shape="rect" id="node26" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="1651,817,1803,847"/><area shape="rect" id="node32" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="1212,773,1359,819"/><area shape="rect" id="node34" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="944,739,1101,768"/><area shape="rect" id="node36" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1216,695,1355,724"/><area shape="rect" id="node42" href="make_8utilities_8inc.html#acb37b7739b2d486d1920a413676c42bf" title="_make_parse_info_file" alt="" coords="699,111,851,140"/><area shape="rect" id="node44" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="687,57,863,87"/><area shape="rect" id="node52" href="core_8drush_8inc.html#aa42bc0fdfeb8d31d452fd1b9602d3cf9" title="core_help_complete" alt="" coords="953,336,1092,365"/><area shape="rect" id="node55" href="outputformat_8drush_8inc.html#a4a9cc3871032fba8891b665d2606dcc0" title="drush_get_command_format\l_metadata" alt="" coords="929,549,1116,595"/><area shape="rect" id="node59" href="topic_8drush_8inc.html#a344ae16f10767b01599d5a0d4ee711e3" title="topic_drush_help_alter" alt="" coords="947,443,1099,472"/><area shape="rect" id="node62" href="topic_8drush_8inc.html#a6565f0ae92a81e15b374bf7a4147362b" title="drush_get_topics" alt="" coords="963,389,1083,419"/><area shape="rect" id="node69" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="944,843,1101,872"/><area shape="rect" id="node74" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98" title="drush_is_command" alt="" coords="956,496,1089,525"/><area shape="rect" id="node76" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="913,213,1132,243"/><area shape="rect" id="node81" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="944,669,1101,715"/><area shape="rect" id="node84" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="965,109,1080,139"/><area shape="rect" id="node90" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="937,266,1108,313"/><area shape="rect" id="node57" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="1221,557,1349,587"/><area shape="rect" id="node65" href="topic_8drush_8inc.html#aeb0d8445f69455eb3eebf375b0dbfd50" title="topic_core_topic_complete" alt="" coords="1197,416,1373,445"/><area shape="rect" id="node72" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="1200,842,1371,889"/><area shape="rect" id="node78" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="1183,213,1388,259"/><area shape="rect" id="node86" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="1188,40,1383,69"/><area shape="rect" id="node88" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1217,93,1353,139"/><area shape="rect" id="node94" href="pm_8drush_8inc.html#a7a7640133c515e06c96d0f4262b98c51" title="drush_pm_include_version\l_control" alt="" coords="687,1054,863,1101"/><area shape="rect" id="node97" href="drush_8inc.html#aa61cd59315f7a89a8c7df8649f480a31" title="drush_version_control\l_reserved_files" alt="" coords="700,1123,849,1170"/><area shape="rect" id="node100" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="948,1149,1097,1195"/><area shape="rect" id="node102" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="463,669,636,699"/><area shape="rect" id="node105" href="engines_8inc.html#a434593aa5eee4a2a9e6e51cdca8ccab5" title="drush_engine_topic\l_command" alt="" coords="483,1243,616,1290"/><area shape="rect" id="node107" href="engines_8inc.html#af360562cce71af9828bbbb7326b1d7a8" title="drush_load_engine" alt="" coords="709,1001,840,1031"/><area shape="rect" id="node111" href="engines_8inc.html#a91df31f18b0a1d05540ccaf85e6d9a88" title="drush_include_engine" alt="" coords="476,1015,623,1044"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a43bed68a16ab6c68384132f83bed87d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_enforce_requirement_bootstrap_phase </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check that a command is valid for the current bootstrap phase.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$command</td><td>Command to check. Any errors will be added to the 'bootstrap_errors' element.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if command is valid. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01649">1649</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a43bed68a16ab6c68384132f83bed87d8_cgraph.png" border="0" usemap="#includes_2command_8inc_a43bed68a16ab6c68384132f83bed87d8_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a43bed68a16ab6c68384132f83bed87d8_cgraph" id="includes_2command_8inc_a43bed68a16ab6c68384132f83bed87d8_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="732,5,860,35"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="233,59,271,88"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="321,54,455,101"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="505,60,649,89"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="699,60,893,89"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a70fb51b1b660ded588045e6fa4bda385"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_enforce_requirement_core </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check that a command is valid for the current major version of core. Handles explicit version numbers and 'plus' numbers like 7+ (compatible with 7,8 ...).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$command</td><td>Command to check. Any errors will be added to the 'bootstrap_errors' element.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if command is valid. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01698">1698</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2drupal_8inc_source.html#l00077">drush_drupal_major_version()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a70fb51b1b660ded588045e6fa4bda385_cgraph.png" border="0" usemap="#includes_2command_8inc_a70fb51b1b660ded588045e6fa4bda385_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a70fb51b1b660ded588045e6fa4bda385_cgraph" id="includes_2command_8inc_a70fb51b1b660ded588045e6fa4bda385_cgraph">
<area shape="rect" id="node3" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="353,23,487,70"/><area shape="rect" id="node11" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="265,57,303,87"/><area shape="rect" id="node5" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="537,32,681,61"/><area shape="rect" id="node7" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="731,5,925,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="764,59,892,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aecc91d49e1657c1ab4a8b657c2bc54f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_enforce_requirement_drush_dependencies </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check that a command has its declared drush dependencies available or have no dependencies. Drush dependencies are helpful when a command is invoking another command, or implementing its API.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">$command</td><td>Command to check. Any errors will be added to the 'bootstrap_errors' element. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if dependencies are met. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01670">1670</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01355">drush_commandfile_list()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aecc91d49e1657c1ab4a8b657c2bc54f3_cgraph.png" border="0" usemap="#includes_2command_8inc_aecc91d49e1657c1ab4a8b657c2bc54f3_cgraph" alt=""/></div>
<map name="includes_2command_8inc_aecc91d49e1657c1ab4a8b657c2bc54f3_cgraph" id="includes_2command_8inc_aecc91d49e1657c1ab4a8b657c2bc54f3_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="321,5,479,35"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="233,63,271,92"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="756,8,884,37"/><area shape="rect" id="node9" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="333,58,467,105"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="529,63,673,92"/><area shape="rect" id="node13" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="723,63,917,92"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a835a66ae60ec33b87f477a6b3dd00547"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_filename_blacklist </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Substrings to ignore during commandfile and site alias searching. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01458">1458</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00446">drush_get_option_list()</a>.</p>

<p>Referenced by <a class="el" href="sitealias_8inc_source.html#l00567">_drush_sitealias_find_alias_files()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_cgraph.png" border="0" usemap="#includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_cgraph" id="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="220,59,364,88"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="415,59,535,88"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="596,5,724,35"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="596,59,724,88"/><area shape="rect" id="node11" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="585,112,735,141"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_icgraph.png" border="0" usemap="#includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_icgraph" id="includes_2command_8inc_a835a66ae60ec33b87f477a6b3dd00547_icgraph">
<area shape="rect" id="node3" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="219,550,363,597"/><area shape="rect" id="node5" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="411,515,560,562"/><area shape="rect" id="node115" href="sitealias_8inc.html#a342a408e79400ac5ea8ee8023723cccf" title="_drush_sitealias_find\l_and_load_alias" alt="" coords="413,585,557,631"/><area shape="rect" id="node7" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="608,339,768,368"/><area shape="rect" id="node31" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="611,751,765,798"/><area shape="rect" id="node9" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="816,236,976,265"/><area shape="rect" id="node11" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="1540,602,1687,649"/><area shape="rect" id="node15" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="1044,197,1196,243"/><area shape="rect" id="node17" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="1031,320,1209,349"/><area shape="rect" id="node19" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1041,267,1199,296"/><area shape="rect" id="node25" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="1055,5,1185,51"/><area shape="rect" id="node27" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="1059,74,1181,121"/><area shape="rect" id="node29" href="sql_8drush_8inc.html#a6c0438aa3afaa78282707b5165e386e4" title="sql_sql_sync_complete" alt="" coords="1041,144,1199,173"/><area shape="rect" id="node13" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1788,611,1929,640"/><area shape="rect" id="node21" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="1295,293,1433,323"/><area shape="rect" id="node23" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="1539,359,1688,388"/><area shape="rect" id="node33" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="829,929,963,975"/><area shape="rect" id="node35" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="1295,797,1433,827"/><area shape="rect" id="node37" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="1051,765,1189,795"/><area shape="rect" id="node39" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1052,1042,1188,1089"/><area shape="rect" id="node41" href="backend_8inc.html#a3d855df98e2c6cb0314a947058f92b99" title="drush_backend_output" alt="" coords="1044,989,1196,1019"/><area shape="rect" id="node47" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="1043,1111,1197,1158"/><area shape="rect" id="node59" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="2003,1141,2200,1171"/><area shape="rect" id="node63" href="includes_2command_8inc.html#a019118f49079e478cd35ca8eb17998c1" title="drush_process_bootstrap\l_to_first_arg" alt="" coords="1036,1415,1204,1462"/><area shape="rect" id="node67" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="1528,1443,1699,1472"/><area shape="rect" id="node73" href="sitealias_8inc.html#a49c2ae562dfc96846a235e521c945a20" title="drush_sitealias_create\l_self_alias" alt="" coords="1044,1337,1196,1383"/><area shape="rect" id="node79" href="sitealias_8inc.html#a276a2325cb18922b6d365c13a6ed7d66" title="_drush_sitealias_set\l_context_by_name" alt="" coords="1543,1578,1684,1625"/><area shape="rect" id="node85" href="sitealias_8inc.html#a0dd349885b59373b8a067d7589d096e7" title="drush_sitealias_resolve\l_sitespecs" alt="" coords="1285,901,1443,947"/><area shape="rect" id="node90" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1049,575,1191,622"/><area shape="rect" id="node93" href="sitealias_8inc.html#a09f500deb9e45e97098a37a4caa374ee" title="drush_sitealias_is\l_bootstrapped_site" alt="" coords="1548,1149,1679,1195"/><area shape="rect" id="node96" href="sitealias_8inc.html#a5437d4bdf307bcc37cd15e903b3d99a9" title="drush_sitealias_is\l_remote_site" alt="" coords="1551,1070,1676,1117"/><area shape="rect" id="node99" href="sitealias_8inc.html#a0c03b431ce6b8291d85dfd206e516159" title="drush_sitealias_bootstrapped\l_site_name" alt="" coords="1025,645,1215,691"/><area shape="rect" id="node101" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="1041,869,1199,915"/><area shape="rect" id="node106" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1279,705,1449,751"/><area shape="rect" id="node111" href="sitealias_8inc.html#aba0142245fe1b01f094d42fb060391b1" title="_drush_sitealias_preflight_path" alt="" coords="1513,797,1713,827"/><area shape="rect" id="node43" href="preflight_8inc.html#a615008fc32203b55f5355e105450d60b" title="drush_shutdown" alt="" coords="1305,971,1423,1000"/><area shape="rect" id="node45" href="unit_8drush_8inc.html#ae381f2b0e4bd97806103a439b9af1b0c" title="drush_unit_batch" alt="" coords="1304,1024,1424,1053"/><area shape="rect" id="node49" href="group__dispatching.html#ga125471885af052278a0874446b332cf9" title="drush_invoke_process" alt="" coords="1537,1009,1689,1039"/><area shape="rect" id="node61" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="1311,1128,1417,1157"/><area shape="rect" id="node51" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="1788,996,1929,1025"/><area shape="rect" id="node53" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="1799,1064,1919,1093"/><area shape="rect" id="node55" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="1764,929,1953,959"/><area shape="rect" id="node57" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="1780,1133,1937,1179"/><area shape="rect" id="node65" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="1301,1437,1427,1467"/><area shape="rect" id="node69" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="1805,1443,1912,1472"/><area shape="rect" id="node76" href="preflight_8inc.html#a7b3a0beead72750a7172800793cd509b" title="_drush_preflight_root_uri" alt="" coords="1283,1541,1445,1571"/><area shape="rect" id="node83" href="lib_2Drush_2Boot_2bootstrap_8inc.html#af264ad4df6841a41b7b37f6eed2ea3b4" title="_drush_bootstrap_selected_uri" alt="" coords="1265,1333,1463,1363"/><area shape="rect" id="node81" href="sitealias_8drush_8inc.html#a617aa7e74fc3c55cb99263a84e414466" title="drush_sitealias_site_set" alt="" coords="1777,1587,1940,1616"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af0c377881e5c9c772f0cad80ea016452"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_commands </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$reset</em> = <code>FALSE</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get a list of all implemented commands. This invokes <a class="el" href="drush_8api_8php.html#ad8372d595205e79e81d7700f4f59b31c">hook_drush_command()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>Associative array of currently active command descriptors. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l00973">973</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01636">drush_command_hook()</a>, <a class="el" href="includes_2command_8inc_source.html#l01074">drush_command_translate()</a>, <a class="el" href="includes_2command_8inc_source.html#l01355">drush_commandfile_list()</a>, and <a class="el" href="engines_8inc_source.html#l00173">drush_merge_engine_data()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00535">_drush_verify_cli_options()</a>, <a class="el" href="core_8drush_8inc_source.html#l00377">core_help_complete()</a>, <a class="el" href="lib_2Drush_2Boot_2bootstrap_8inc_source.html#l00170">drush_bootstrap()</a>, <a class="el" href="includes_2command_8inc_source.html#l01330">drush_command_normalize_name()</a>, <a class="el" href="complete_8inc_source.html#l00450">drush_complete_rebuild()</a>, <a class="el" href="complete_8inc_source.html#l00497">drush_complete_rebuild_arguments()</a>, <a class="el" href="docs_8drush_8inc_source.html#l00201">drush_docs_errorcodes()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00029">drush_get_command_format_metadata()</a>, <a class="el" href="topic_8drush_8inc_source.html#l00088">drush_get_topics()</a>, <a class="el" href="includes_2command_8inc_source.html#l00035">drush_invoke()</a>, <a class="el" href="includes_2command_8inc_source.html#l01318">drush_is_command()</a>, <a class="el" href="includes_2command_8inc_source.html#l01194">drush_parse_command()</a>, <a class="el" href="topic_8drush_8inc_source.html#l00054">drush_topic_core_topic()</a>, <a class="el" href="commandUnitTest_8php_source.html#l00045">Unish\commandUnitCase\testGetCommands()</a>, and <a class="el" href="topic_8drush_8inc_source.html#l00037">topic_drush_help_alter()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_cgraph.png" border="0" usemap="#includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_cgraph" alt=""/></div>
<map name="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_cgraph" id="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="681,5,833,35"/><area shape="rect" id="node5" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="207,293,380,323"/><area shape="rect" id="node19" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="679,59,836,88"/><area shape="rect" id="node22" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="207,189,380,219"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="431,371,612,400"/><area shape="rect" id="node9" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="739,319,776,348"/><area shape="rect" id="node11" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="927,310,1060,357"/><area shape="rect" id="node13" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1140,315,1284,344"/><area shape="rect" id="node15" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1339,315,1533,344"/><area shape="rect" id="node17" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1372,181,1500,211"/><area shape="rect" id="node24" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="663,112,852,141"/><area shape="rect" id="node28" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="456,112,587,141"/><area shape="rect" id="node45" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="435,267,608,296"/><area shape="rect" id="node26" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="903,52,1084,81"/><area shape="rect" id="node31" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="701,165,813,195"/><area shape="rect" id="node35" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1135,207,1289,236"/><area shape="rect" id="node38" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="955,156,1032,185"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_icgraph.png" border="0" usemap="#includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_icgraph" alt=""/></div>
<map name="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_icgraph" id="includes_2command_8inc_af0c377881e5c9c772f0cad80ea016452_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="232,129,400,159"/><area shape="rect" id="node7" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="752,85,907,115"/><area shape="rect" id="node9" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="780,32,879,61"/><area shape="rect" id="node17" href="core_8drush_8inc.html#aa42bc0fdfeb8d31d452fd1b9602d3cf9" title="core_help_complete" alt="" coords="247,593,385,623"/><area shape="rect" id="node19" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a504cc0d2dfbfa276957c1e02c8f8c900" title="drush_bootstrap" alt="" coords="259,783,373,812"/><area shape="rect" id="node64" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="751,1280,908,1309"/><area shape="rect" id="node68" href="complete_8inc.html#a4bbb8faee318ca6f3b8d70710d0406ba" title="drush_complete_rebuild\l_arguments" alt="" coords="751,1210,908,1257"/><area shape="rect" id="node77" href="includes_2command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="207,1083,425,1112"/><area shape="rect" id="node83" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="237,976,395,1005"/><area shape="rect" id="node85" href="outputformat_8drush_8inc.html#a4a9cc3871032fba8891b665d2606dcc0" title="drush_get_command_format\l_metadata" alt="" coords="223,1189,409,1235"/><area shape="rect" id="node89" href="topic_8drush_8inc.html#a6565f0ae92a81e15b374bf7a4147362b" title="drush_get_topics" alt="" coords="256,647,376,676"/><area shape="rect" id="node95" href="includes_2command_8inc.html#a727745c7eb5e69dedd5587146c0d0d98" title="drush_is_command" alt="" coords="249,1136,383,1165"/><area shape="rect" id="node97" href="includes_2command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="237,1029,395,1059"/><area shape="rect" id="node105" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="231,1258,401,1305"/><area shape="rect" id="node107" href="topic_8drush_8inc.html#a344ae16f10767b01599d5a0d4ee711e3" title="topic_drush_help_alter" alt="" coords="240,1328,392,1357"/><area shape="rect" id="node5" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="524,85,633,115"/><area shape="rect" id="node11" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="977,129,1143,159"/><area shape="rect" id="node13" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="997,59,1123,88"/><area shape="rect" id="node15" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="984,5,1136,35"/><area shape="rect" id="node21" href="image_8drush_8inc.html#a2dc93132bd3c21ad6e474a9d6a241722" title="image_image_flush_complete" alt="" coords="481,752,676,781"/><area shape="rect" id="node23" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="511,805,647,851"/><area shape="rect" id="node25" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="769,1333,889,1363"/><area shape="rect" id="node27" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a9873ccab1bddcd37adaac3403dd37d60" title="drush_bootstrap_to\l_phase" alt="" coords="763,138,896,185"/><area shape="rect" id="node32" href="lib_2Drush_2Boot_2bootstrap_8inc.html#adb325e52092d83c685acdee827af1085" title="drush_bootstrap_max" alt="" coords="505,699,652,728"/><area shape="rect" id="node30" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="985,521,1135,551"/><area shape="rect" id="node34" href="config_8drush_8inc.html#a49e0e252235dd709f7151231cf13519e" title="_drush_config_directories\l_complete" alt="" coords="744,207,915,254"/><area shape="rect" id="node36" href="config_8drush_8inc.html#af1d1bf8c1e046236ed8df0712af62ff9" title="_drush_config_names\l_complete" alt="" coords="755,277,904,323"/><area shape="rect" id="node38" href="core_8drush_8inc.html#acb8d761c0357c377a517a7336c1e4352" title="core_site_install_complete" alt="" coords="741,347,917,376"/><area shape="rect" id="node40" href="field_8drush_8inc.html#a3b9c0d18418e620dd2561341c5daf350" title="field_field_create\l_complete" alt="" coords="769,399,889,446"/><area shape="rect" id="node42" href="field_8drush_8inc.html#a4c1167a0ddfcac9e81383991832d77c5" title="field_field_complete\l_field_names" alt="" coords="761,469,897,515"/><area shape="rect" id="node44" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="759,539,900,568"/><area shape="rect" id="node46" href="test_8drush_8inc.html#a51877c20991275c2f1b3db7ed15aa82e" title="test_test_run_complete" alt="" coords="751,592,908,621"/><area shape="rect" id="node48" href="views_8d8_8drush_8inc.html#ac8dc95a391ef2a77ddaac1e9522086dd" title="_drush_views_complete" alt="" coords="748,645,911,675"/><area shape="rect" id="node50" href="group__extensions.html#ga7a2fb27ecd55a327d27d97a59a62c2d6" title="pm_complete_extensions" alt="" coords="744,699,915,728"/><area shape="rect" id="node52" href="group__extensions.html#gaea366ba3a9ac9138d35dc9e3523b47ea" title="pm_complete_projects" alt="" coords="753,752,905,781"/><area shape="rect" id="node54" href="runserver_8drush_8inc.html#a8db8226cf620f67826b59f6091142f60" title="drush_core_runserver" alt="" coords="756,805,903,835"/><area shape="rect" id="node56" href="sql_8drush_8inc.html#ab13f76971fb460582134a678eaec114c" title="drush_sql_bootstrap\l_database_configuration" alt="" coords="748,911,911,958"/><area shape="rect" id="node58" href="sql_8drush_8inc.html#a05194b55585f4faf2836070d11e55df5" title="drush_sql_query" alt="" coords="771,981,888,1011"/><area shape="rect" id="node60" href="sql_8drush_8inc.html#a9e45958fb554a3f6049ee18c857207af" title="drush_sql_sanitize" alt="" coords="764,1035,895,1064"/><area shape="rect" id="node62" href="group__hooks.html#ga84e8d0c2085eaf4dd3b0fdc0084a1fcf" title="drush_COMMAND_init" alt="" coords="752,1088,907,1117"/><area shape="rect" id="node71" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="731,859,928,888"/><area shape="rect" id="node75" href="lib_2Drush_2Boot_2bootstrap_8inc.html#a7d146f189fdb31b255168a475f77cef0" title="drush_bootstrap_max\l_to_sitealias" alt="" coords="756,1141,903,1187"/><area shape="rect" id="node66" href="complete_8inc.html#ac5c1cad8930371b383f35f1baf65692e" title="drush_complete_get" alt="" coords="991,1249,1129,1279"/><area shape="rect" id="node79" href="includes_2command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="476,1165,681,1211"/><area shape="rect" id="node87" href="core_8drush_8inc.html#aa7e3d1ac48eb92dab34abeb42f84cd3f" title="drush_core_status" alt="" coords="515,1235,643,1264"/><area shape="rect" id="node92" href="topic_8drush_8inc.html#aeb0d8445f69455eb3eebf375b0dbfd50" title="topic_core_topic_complete" alt="" coords="491,595,667,624"/><area shape="rect" id="node99" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="505,1095,652,1142"/><area shape="rect" id="node102" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="493,1026,664,1073"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a272d98da256f7ae2988f3aa7cb6b464b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_original_cli_args_and_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return the original cli args and options, exactly as they appeared on the command line, and in the same order. Any command-specific options that were set will also appear in this list, appended at the very end.</p>
<p>The args and options returned are raw, and must be escaped as necessary before use. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01606">1606</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l00624">_drush_get_command_options()</a>, <a class="el" href="context_8inc_source.html#l00387">drush_get_command()</a>, and <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l01201">drush_core_execute()</a>, and <a class="el" href="ssh_8drush_8inc_source.html#l00035">drush_ssh_site_ssh()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_cgraph.png" border="0" usemap="#includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_cgraph" id="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="207,42,356,89"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1065,111,1193,140"/><area shape="rect" id="node15" href="context_8inc.html#a8fc57227375a540fea5314b154576354" title="drush_get_command" alt="" coords="416,163,557,192"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="405,42,568,89"/><area shape="rect" id="node7" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="616,51,808,80"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="860,5,1012,35"/><area shape="rect" id="node11" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="857,59,1015,88"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_icgraph.png" border="0" usemap="#includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_icgraph" id="includes_2command_8inc_a272d98da256f7ae2988f3aa7cb6b464b_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="205,5,344,35"/><area shape="rect" id="node5" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="205,59,344,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a727745c7eb5e69dedd5587146c0d0d98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_is_command </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$command</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">string</td><td>name of command to check.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>boolean TRUE if the given command has an implementation. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01318">1318</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a727745c7eb5e69dedd5587146c0d0d98_cgraph.png" border="0" usemap="#includes_2command_8inc_a727745c7eb5e69dedd5587146c0d0d98_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a727745c7eb5e69dedd5587146c0d0d98_cgraph" id="includes_2command_8inc_a727745c7eb5e69dedd5587146c0d0d98_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="191,124,340,153"/><area shape="rect" id="node5" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="865,5,1017,35"/><area shape="rect" id="node7" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="391,293,564,323"/><area shape="rect" id="node21" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="863,59,1020,88"/><area shape="rect" id="node24" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="391,189,564,219"/><area shape="rect" id="node9" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="615,371,796,400"/><area shape="rect" id="node11" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="923,319,960,348"/><area shape="rect" id="node13" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1111,310,1244,357"/><area shape="rect" id="node15" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1324,315,1468,344"/><area shape="rect" id="node17" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1523,315,1717,344"/><area shape="rect" id="node19" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1556,181,1684,211"/><area shape="rect" id="node26" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="847,112,1036,141"/><area shape="rect" id="node30" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="640,112,771,141"/><area shape="rect" id="node47" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="619,267,792,296"/><area shape="rect" id="node28" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1087,52,1268,81"/><area shape="rect" id="node33" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="885,165,997,195"/><area shape="rect" id="node37" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1319,207,1473,236"/><area shape="rect" id="node40" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1139,156,1216,185"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5c7d0d064d4cb56bfe2b2311e5643e11"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_parse_args </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Parse console arguments. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l00724">724</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l00882">drush_adjust_args_if_shebang_script()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="includes_2command_8inc_source.html#l00949">drush_process_bootstrap_to_first_arg()</a>, <a class="el" href="context_8inc_source.html#l00352">drush_set_arguments()</a>, <a class="el" href="context_8inc_source.html#l00223">drush_set_config_special_contexts()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, and <a class="el" href="sitealias_8inc_source.html#l00136">drush_sitealias_valid_alias_format()</a>.</p>

<p>Referenced by <a class="el" href="complete_8inc_source.html#l00228">drush_complete_process_argv()</a>, <a class="el" href="preflight_8inc_source.html#l00016">drush_preflight_prepare()</a>, and <a class="el" href="includes_2command_8inc_source.html#l01722">drush_shell_alias_replace()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_cgraph.png" border="0" usemap="#includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_cgraph" id="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1" title="drush_adjust_args_if\l_shebang_script" alt="" coords="1045,1117,1187,1163"/><area shape="rect" id="node15" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1277,1244,1405,1273"/><area shape="rect" id="node17" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1735,1007,1863,1036"/><area shape="rect" id="node23" href="includes_2command_8inc.html#a019118f49079e478cd35ca8eb17998c1" title="drush_process_bootstrap\l_to_first_arg" alt="" coords="179,390,347,437"/><area shape="rect" id="node106" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25" title="drush_set_arguments" alt="" coords="189,1184,336,1213"/><area shape="rect" id="node109" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="396,1338,564,1385"/><area shape="rect" id="node130" href="sitealias_8inc.html#a146cdaffbcfaa41f0a53c27cbc7e8b19" title="drush_sitealias_valid\l_alias_format" alt="" coords="192,1569,333,1615"/><area shape="rect" id="node5" href="drush_8inc.html#a8f5d18c322518e0f31f3fce0f024f2ef" title="_drush_is_drush_shebang\l_script" alt="" coords="1255,1123,1428,1170"/><area shape="rect" id="node9" href="includes_2environment_8inc.html#a87a6fcd104950fb9b0d90e25208bcf79" title="drush_has_bash" alt="" coords="1283,1020,1400,1049"/><area shape="rect" id="node19" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="1525,1187,1645,1216"/><area shape="rect" id="node7" href="drush_8inc.html#a997323f1acad3b9f003118bdcf3540c9" title="_drush_is_drush_shebang_line" alt="" coords="1485,1132,1685,1161"/><area shape="rect" id="node11" href="includes_2environment_8inc.html#acb6cf64eca1804a5f5ca34cad6e2c66b" title="drush_is_cygwin" alt="" coords="1527,1020,1644,1049"/><area shape="rect" id="node13" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1521,389,1649,419"/><area shape="rect" id="node25" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="420,123,540,152"/><area shape="rect" id="node33" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="413,641,547,687"/><area shape="rect" id="node27" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="627,43,755,72"/><area shape="rect" id="node30" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="616,96,765,125"/><area shape="rect" id="node35" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="831,490,972,537"/><area shape="rect" id="node50" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1276,601,1407,647"/><area shape="rect" id="node61" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1045,733,1187,779"/><area shape="rect" id="node69" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="613,853,768,899"/><area shape="rect" id="node38" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1263,389,1420,419"/><area shape="rect" id="node42" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1045,490,1187,537"/><area shape="rect" id="node44" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="1037,560,1195,589"/><area shape="rect" id="node47" href="sitealias_8inc.html#a38645e5a6d252e6f419db90c5e7e8739" title="_drush_sitealias_find\l_record_for_local_site" alt="" coords="1041,613,1191,659"/><area shape="rect" id="node56" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1048,199,1184,246"/><area shape="rect" id="node64" href="sitealias_8inc.html#a1f4c706969fbd0d73d227a52d106b5f4" title="_drush_sitealias_add\l_static_defaults" alt="" coords="1044,319,1188,366"/><area shape="rect" id="node53" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="1512,697,1659,743"/><area shape="rect" id="node58" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1267,212,1416,241"/><area shape="rect" id="node66" href="sitealias_8inc.html#a96a1545df8b70035ba248ae3cb057d06" title="drush_sitealias_convert\l_db_from_db_url" alt="" coords="1263,319,1420,366"/><area shape="rect" id="node71" href="sitealias_8inc.html#a90a54eb940fe80e6e9e3faf12098cbac" title="drush_sitealias_quick\l_lookup_cached_alias\l_by_path" alt="" coords="827,983,976,1047"/><area shape="rect" id="node83" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1041,853,1191,899"/><area shape="rect" id="node97" href="sitealias_8inc.html#af5e2a5f32557a495b31c2a72bab9586b" title="drush_sitealias_cache\l_alias_by_path" alt="" coords="827,913,976,959"/><area shape="rect" id="node73" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="1065,1029,1167,1059"/><area shape="rect" id="node76" href="includes_2cache_8inc.html#adc36ac3b562c67cbf1d7aab89c029694" title="drush_cache_get" alt="" coords="1056,976,1176,1005"/><area shape="rect" id="node78" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1303,913,1380,943"/><area shape="rect" id="node81" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1323,967,1360,996"/><area shape="rect" id="node85" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="1269,739,1413,786"/><area shape="rect" id="node90" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="1256,670,1427,717"/><area shape="rect" id="node93" href="sitealias_8inc.html#aa4c589e4cb7f9ac0dad80ff526444c19" title="_sitealias_array_merge" alt="" coords="1264,809,1419,839"/><area shape="rect" id="node101" href="includes_2cache_8inc.html#a27a40af68c2a61fdf94b980b953236bf" title="drush_cache_set" alt="" coords="1056,923,1176,952"/><area shape="rect" id="node111" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="621,1449,760,1495"/><area shape="rect" id="node113" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="817,1437,985,1467"/><area shape="rect" id="node126" href="includes_2command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="820,1287,983,1334"/><area shape="rect" id="node115" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="1035,1429,1197,1475"/><area shape="rect" id="node117" href="includes_2command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="1245,1437,1437,1467"/><area shape="rect" id="node119" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1509,1461,1661,1491"/><area shape="rect" id="node121" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1507,1408,1664,1437"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_icgraph.png" border="0" usemap="#includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_icgraph" id="includes_2command_8inc_a5c7d0d064d4cb56bfe2b2311e5643e11_icgraph">
<area shape="rect" id="node3" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="180,9,377,39"/><area shape="rect" id="node7" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="200,67,357,96"/><area shape="rect" id="node11" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="193,124,364,153"/><area shape="rect" id="node5" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="440,5,589,35"/><area shape="rect" id="node9" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="428,58,601,105"/><area shape="rect" id="node13" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="461,128,568,157"/><area shape="rect" id="node15" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="707,32,795,61"/><area shape="rect" id="node17" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="652,85,849,131"/><area shape="rect" id="node19" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="665,154,836,201"/><area shape="rect" id="node21" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="655,223,847,270"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aaf301462cb45c0da60e79ea868323858"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_parse_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Matches a commands array, as returned by drush_get_arguments, with the current command table.</p>
<p>Note that not all commands may be discoverable at the point-of-call, since Drupal modules can ship commands as well, and they are not available until after bootstrapping.</p>
<p>drush_parse_command returns a normalized command descriptor, which is an associative array. Some of its entries are:</p>
<ul>
<li>callback arguments: an array of arguments to pass to the calback.</li>
<li>callback: the function to run. Usually, this is 'drush_command', which will determine the primary hook for the function automatically. Only specify a callback function if you need many commands to call the same function (e.g. drush_print_file).</li>
<li>invoke hooks: If TRUE (the default), Drush will invoke all of the pre and post hooks for this command. Set to FALSE to suppress hooks. This setting is ignored unless the command 'callback' is also set.</li>
<li>primary function: Drush will copy the 'callback' parameter here if necessary. This value should not be set explicitly; use 'callback' instead.</li>
<li>description: description of the command.</li>
<li>arguments: an array of arguments that are understood by the command. for help texts.</li>
<li>required-arguments: The minimum number of arguments that are required, or TRUE if all are required.</li>
<li>options: an array of options that are understood by the command. for help texts.</li>
<li>examples: an array of examples that are understood by the command. for help texts.</li>
<li>scope: one of 'system', 'project', 'site'.</li>
<li>bootstrap: drupal bootstrap level (depends on Drupal major version). -1=no_bootstrap.</li>
<li>core: Drupal major version required.</li>
<li>drupal dependencies: drupal modules required for this command.</li>
<li>drush dependencies: other drush command files required for this command.</li>
<li>handle-remote-commands: set to TRUE if <code>drush @remote mycommand</code> should be executed locally rather than remotely dispatched. When this mode is set, the target site can be obtained via: drush_get_context('DRUSH_TARGET_SITE_ALIAS')</li>
<li>remote-tty: set to TRUE if Drush should force ssh to allocate a pseudo-tty when this command is being called remotely. Important for interactive commands. Remote commands that allocate a psedo-tty always print "Connection closed..." when done.</li>
<li>strict-option-handling: set to TRUE if drush should strictly separate local command cli options from the global options. Usually, drush allows global cli options and command cli options to be interspersed freely on the commandline. For commands where this flag is set, options are separated, with global options comming before the command names, and command options coming after, like so: drush &ndash;global-options command &ndash;command-options In this mode, the command options are no longer available via <a class="el" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8">drush_get_option()</a>; instead, they can be retrieved via: $args = <a class="el" href="includes_2command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b">drush_get_original_cli_args_and_options()</a>; $args = drush_get_context('DRUSH_COMMAND_ARGS', array()); In this case, $args will contain the command args and options literally, exactly as they were entered on the command line, and in the same order as they appeared.</li>
<li>'outputformat': declares the data format to be used to render the command result. In addition to the output format engine options listed below, each output format type can take additional metadata items that control the way that the output is rendered. See the comment in each particular output format class for information. The Drush core output format engines can be found in commands/core/outputformat.<ul>
<li>'default': The default type to render output as. If declared, the command should not print any output on its own, but instead should return a data structure (usually an associative array) that can be rendered by the output type selected.</li>
<li>'pipe-format': When the command is executed in &ndash;pipe mode, the command output will be rendered by the format specified by the pipe-format item instead of the default format. Note that in either event, the user may specify the format to use via the &ndash;format command-line option.</li>
<li>'formatted-filter': specifies a function callback that will be used to filter the command result if the selected output formatter is NOT declared to be machine-parsable. "table" is an example of an output format that is not machine-parsable.</li>
<li>'parsable-filter': function callback that will be used to filter the command result if the selected output formatter is declared to be machine-parsable. "var_export" is an example of an output format that is machine-parsable.</li>
<li>'output-data-type': An identifier representing the data structure that the command returns. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="outputformat_8drush_8inc.html#a2b6ff1dbfef77f4ddbebef3c1b5c450c">outputformat_drush_engine_outputformat()</a> for a description of the supported values.</dd></dl>
</li>
<li>'field-labels': A mapping from machine name to human-readable name for all of the fields in a table-format command result. All possible field names should appear in this list.</li>
<li>'fields-default': A list of the machine names of the fields that should be displayed by default in tables.</li>
<li>'private-fields': A list of any fields that contain sensitive information, such as passwords. By default, Drush will hide private fields before printing the results to the console, but will include them in backend invoke results. Use &ndash;show-passwords to display.</li>
<li>'column-widths': A mapping from field machine name to the column width that should be used in table output. Drush will automatically calculate the width of any field not listed here based on the length of the data items in it.</li>
</ul>
</li>
<li>engines: declares information on Drush engines the command will load. Available engines can vary by command type.</li>
</ul>
<dl class="section return"><dt>Returns</dt><dd>bool|array A command definition. </dd></dl>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01194">1194</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="includes_2command_8inc_source.html#l01226">_drush_prepare_command()</a>, <a class="el" href="context_8inc_source.html#l00366">drush_get_arguments()</a>, <a class="el" href="includes_2command_8inc_source.html#l00973">drush_get_commands()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, and <a class="el" href="context_8inc_source.html#l00380">drush_set_command()</a>.</p>

<p>Referenced by <a class="el" href="drush_8inc_source.html#l01079">drush_preflight_command_dispatch()</a>, and <a class="el" href="includes_2command_8inc_source.html#l00665">drush_redispatch_get_options()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_cgraph.png" border="0" usemap="#includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_cgraph" alt=""/></div>
<map name="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_cgraph" id="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_cgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a6a908a954cb96c0e4dadb715cd72cae4" title="_drush_prepare_command" alt="" coords="212,288,385,317"/><area shape="rect" id="node5" href="context_8inc.html#afaf9361f1297f29d10402b075985985a" title="drush_get_arguments" alt="" coords="1368,419,1515,448"/><area shape="rect" id="node9" href="includes_2command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="224,341,373,371"/><area shape="rect" id="node56" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="239,549,359,579"/><area shape="rect" id="node63" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203" title="drush_set_command" alt="" coords="228,471,369,500"/><area shape="rect" id="node7" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1601,288,1729,317"/><area shape="rect" id="node11" href="includes_2command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="911,313,1063,343"/><area shape="rect" id="node13" href="includes_2command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="436,83,609,112"/><area shape="rect" id="node26" href="includes_2command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="908,367,1065,396"/><area shape="rect" id="node29" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="436,187,609,216"/><area shape="rect" id="node15" href="includes_2command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="660,5,841,35"/><area shape="rect" id="node17" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="968,52,1005,81"/><area shape="rect" id="node19" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1156,39,1289,86"/><area shape="rect" id="node21" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1369,52,1513,81"/><area shape="rect" id="node23" href="includes_2drupal_8inc.html#aa7ac001ed15d678fa533b54d962eb5bc" title="drush_drupal_load_autoloader" alt="" coords="1568,52,1763,81"/><area shape="rect" id="node31" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="892,260,1081,289"/><area shape="rect" id="node35" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="685,213,816,243"/><area shape="rect" id="node52" href="engines_8inc.html#ac18b04b38c84979a32603cd5cef78c69" title="drush_find_engine_to_use" alt="" coords="664,160,837,189"/><area shape="rect" id="node33" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1132,315,1313,344"/><area shape="rect" id="node38" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="931,207,1043,236"/><area shape="rect" id="node42" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1364,236,1519,265"/><area shape="rect" id="node45" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1184,261,1261,291"/><area shape="rect" id="node58" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="459,628,587,657"/><area shape="rect" id="node61" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="448,575,597,604"/><area shape="rect" id="node65" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="687,471,815,500"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_icgraph.png" border="0" usemap="#includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_icgraph" alt=""/></div>
<map name="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_icgraph" id="includes_2command_8inc_aaf301462cb45c0da60e79ea868323858_icgraph">
<area shape="rect" id="node3" href="group__commandprocessing.html#gac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="665,5,836,51"/><area shape="rect" id="node7" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="211,114,357,161"/><area shape="rect" id="node5" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="928,13,1016,43"/><area shape="rect" id="node9" href="test_8drush_8inc.html#a4c0795f7fba4f6bc705858edae5d9f2f" title="drush_test_run_class" alt="" coords="436,96,583,125"/><area shape="rect" id="node13" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="456,149,563,179"/><area shape="rect" id="node21" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="449,203,569,232"/><area shape="rect" id="node23" href="group__commandprocessing.html#gaadd12f0ca081399dea1c99984c77e567" title="drush_do_multiple_command" alt="" coords="415,256,604,285"/><area shape="rect" id="node25" href="group__commandprocessing.html#ga2e0ae6f140c9e0f5c301657cebde33d6" title="drush_do_command_redispatch" alt="" coords="407,43,612,72"/><area shape="rect" id="node11" href="test_8drush_8inc.html#a57434dfc9c0efc59211c97e949c64529" title="drush_test_run" alt="" coords="697,96,804,125"/><area shape="rect" id="node15" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="704,149,797,179"/><area shape="rect" id="node17" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="663,203,839,232"/><area shape="rect" id="node19" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="889,203,1055,232"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a019118f49079e478cd35ca8eb17998c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_process_bootstrap_to_first_arg </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$arguments</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Process the &ndash;bootstrap-to-first-arg option, if it is present.</p>
<p>This option checks to see if the first user-provided argument is an alias or site specification; if it is, it will be shifted into the first argument position, where it will specify the site to bootstrap. The result of this is that if your shebang line looks like this:</p>
<p>#!/path/to/drush &ndash;bootstrap-to-first-arg php-script</p>
<p>Then when you run that script, you can optionally provide an alias such as  as the first argument (e.g. $ ./mydrushscript.php  scriptarg1 scriptarg2). Since this is the behavior that one would usually want, it is default behavior for a canonical script. That is, a script with a simple shebang line, like so:</p>
<p>#!/path/to/drush</p>
<p>will implicitly have "&amp;ndash;bootstrap-to-first-arg" and "php-script" prepended, and will therefore behave exactly like the first example. To write a script that does not use &ndash;bootstrap-to-first-arg, then the drush command or at least one flag must be explicitly included, like so:</p>
<p>#!/path/to/drush php-script </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l00949">949</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, and <a class="el" href="sitealias_8inc_source.html#l00176">drush_sitealias_get_record()</a>.</p>

<p>Referenced by <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_cgraph.png" border="0" usemap="#includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_cgraph" id="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2497,822,2625,851"/><area shape="rect" id="node5" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1903,1308,2023,1338"/><area shape="rect" id="node12" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="223,278,356,325"/><area shape="rect" id="node7" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="2103,1334,2231,1363"/><area shape="rect" id="node10" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="2092,1230,2241,1259"/><area shape="rect" id="node14" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1249,453,1391,500"/><area shape="rect" id="node30" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1684,112,1815,158"/><area shape="rect" id="node44" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1465,144,1607,190"/><area shape="rect" id="node54" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="405,889,560,936"/><area shape="rect" id="node17" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1884,334,2041,363"/><area shape="rect" id="node19" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="2103,334,2231,363"/><area shape="rect" id="node22" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1465,453,1607,500"/><area shape="rect" id="node24" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="1457,694,1615,723"/><area shape="rect" id="node27" href="sitealias_8inc.html#a38645e5a6d252e6f419db90c5e7e8739" title="_drush_sitealias_find\l_record_for_local_site" alt="" coords="1461,213,1611,260"/><area shape="rect" id="node36" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1468,522,1604,569"/><area shape="rect" id="node47" href="sitealias_8inc.html#a1f4c706969fbd0d73d227a52d106b5f4" title="_drush_sitealias_add\l_static_defaults" alt="" coords="1464,384,1608,430"/><area shape="rect" id="node33" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="2296,112,2443,158"/><area shape="rect" id="node38" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1675,508,1824,538"/><area shape="rect" id="node41" href="group__filesystemfunctions.html#ga5a78fe09f2e16740db898df3237da602" title="drush_trim_path" alt="" coords="1905,456,2020,486"/><area shape="rect" id="node49" href="sitealias_8inc.html#a96a1545df8b70035ba248ae3cb057d06" title="drush_sitealias_convert\l_db_from_db_url" alt="" coords="1671,385,1828,432"/><area shape="rect" id="node51" href="sitealias_8inc.html#a3e5b4e0099b3cf7ad4ec47fac20e4e54" title="drush_convert_db_from\l_db_url" alt="" coords="1884,386,2041,433"/><area shape="rect" id="node56" href="sitealias_8inc.html#a90a54eb940fe80e6e9e3faf12098cbac" title="drush_sitealias_quick\l_lookup_cached_alias\l_by_path" alt="" coords="1245,1188,1395,1252"/><area shape="rect" id="node79" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="608,889,757,936"/><area shape="rect" id="node130" href="sitealias_8inc.html#af5e2a5f32557a495b31c2a72bab9586b" title="drush_sitealias_cache\l_alias_by_path" alt="" coords="1245,1106,1395,1153"/><area shape="rect" id="node58" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="1485,1360,1587,1390"/><area shape="rect" id="node61" href="includes_2cache_8inc.html#adc36ac3b562c67cbf1d7aab89c029694" title="drush_cache_get" alt="" coords="1476,1206,1596,1235"/><area shape="rect" id="node63" href="includes_2cache_8inc.html#a80d986947415d49a2b3324018a0beb1e" title="_drush_cache_get_object" alt="" coords="1664,1155,1835,1184"/><area shape="rect" id="node66" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1924,976,2001,1006"/><area shape="rect" id="node72" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1944,1062,1981,1091"/><area shape="rect" id="node69" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="2292,950,2447,979"/><area shape="rect" id="node74" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="2100,1053,2233,1100"/><area shape="rect" id="node76" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="2297,1058,2441,1087"/><area shape="rect" id="node81" href="sitealias_8inc.html#a9ccbaf4417b01e474a01db9c985fb103" title="_drush_sitealias_find\l_alias_files" alt="" coords="1032,898,1176,945"/><area shape="rect" id="node100" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="827,795,955,824"/><area shape="rect" id="node105" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="805,278,976,325"/><area shape="rect" id="node126" href="sitealias_8inc.html#aa4c589e4cb7f9ac0dad80ff526444c19" title="_sitealias_array_merge" alt="" coords="813,950,968,979"/><area shape="rect" id="node83" href="sitealias_8inc.html#aa052aebdf8f0c0037fb910f8d59577b0" title="drush_sitealias_alias_path" alt="" coords="1233,587,1407,616"/><area shape="rect" id="node88" href="group__filesystemfunctions.html#ga1c545390a8890f6ea47385f79fbe2e82" title="drush_scan_directory" alt="" coords="1463,899,1609,928"/><area shape="rect" id="node95" href="includes_2command_8inc.html#a835a66ae60ec33b87f477a6b3dd00547" title="drush_filename_blacklist" alt="" coords="1237,1003,1403,1032"/><area shape="rect" id="node90" href="drush_8inc.html#a903c36790dbe5525fe9369c8476780af" title="drush_op" alt="" coords="1712,899,1787,928"/><area shape="rect" id="node97" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="1677,1360,1821,1390"/><area shape="rect" id="node108" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="1025,200,1183,246"/><area shape="rect" id="node111" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="1033,269,1175,316"/><area shape="rect" id="node118" href="sitealias_8inc.html#a584dc890dc9cace2320ee31a25e25d43" title="_drush_sitealias_find\l_local_sites" alt="" coords="1032,389,1176,436"/><area shape="rect" id="node114" href="group__commandwrappers.html#gae0975650ba125212c2666e58729f43cf" title="drush_remote_host" alt="" coords="1253,216,1387,246"/><area shape="rect" id="node116" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="1252,269,1388,316"/><area shape="rect" id="node120" href="sitealias_8inc.html#a140c677ea9e7c406a24ad323fd6b4af4" title="_drush_find_local_sites\l_at_root" alt="" coords="1241,728,1399,774"/><area shape="rect" id="node134" href="includes_2cache_8inc.html#a27a40af68c2a61fdf94b980b953236bf" title="drush_cache_set" alt="" coords="1476,1110,1596,1139"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_icgraph.png" border="0" usemap="#includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_icgraph" alt=""/></div>
<map name="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_icgraph" id="includes_2command_8inc_a019118f49079e478cd35ca8eb17998c1_icgraph">
<area shape="rect" id="node3" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="221,67,347,96"/><area shape="rect" id="node5" href="complete_8inc.html#a9249f2a38d16e008506147243482b39c" title="drush_complete_process_argv" alt="" coords="396,9,593,39"/><area shape="rect" id="node9" href="preflight_8inc.html#a36dd6e0458ff1c29b7e644ebd641c610" title="drush_preflight_prepare" alt="" coords="416,67,573,96"/><area shape="rect" id="node13" href="includes_2command_8inc.html#af671cda00f17af8bc39ff470a3844bab" title="drush_shell_alias_replace" alt="" coords="409,124,580,153"/><area shape="rect" id="node7" href="complete_8inc.html#adbec292adabdfe3772d4ede574ab91c9" title="drush_early_complete" alt="" coords="656,5,805,35"/><area shape="rect" id="node11" href="classUnish_1_1UnitUnishTestCase.html#a07a16d04b341538cfc668785f5bd95ba" title="Unish\\UnitUnishTestCase\l\\setUpBeforeClass" alt="" coords="644,58,817,105"/><area shape="rect" id="node15" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="677,128,784,157"/><area shape="rect" id="node17" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="923,32,1011,61"/><area shape="rect" id="node19" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="868,85,1065,131"/><area shape="rect" id="node21" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="881,154,1052,201"/><area shape="rect" id="node23" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="871,223,1063,270"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af671cda00f17af8bc39ff470a3844bab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_shell_alias_replace </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>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. </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l01722">1722</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00366">drush_get_arguments()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l01413">drush_log()</a>, <a class="el" href="includes_2command_8inc_source.html#l00724">drush_parse_args()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, <a class="el" href="drush_8inc_source.html#l01723">drush_set_error()</a>, <a class="el" href="sitealias_8inc_source.html#l00176">drush_sitealias_get_record()</a>, and <a class="el" href="output_8inc_source.html#l00145">dt()</a>.</p>

<p>Referenced by <a class="el" href="preflight_8inc_source.html#l00099">drush_preflight()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_cgraph.png" border="0" usemap="#includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_cgraph" alt=""/></div>
<map name="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_cgraph" id="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afaf9361f1297f29d10402b075985985a" title="drush_get_arguments" alt="" coords="224,89,371,118"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2155,550,2283,580"/><area shape="rect" id="node8" href="group__logging.html#gad820f489a93518301794ada4ff7816b6" title="drush_log" alt="" coords="1493,336,1571,365"/><area shape="rect" id="node14" href="includes_2command_8inc.html#a5c7d0d064d4cb56bfe2b2311e5643e11" title="drush_parse_args" alt="" coords="235,1258,360,1288"/><area shape="rect" id="node28" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1468,1490,1596,1520"/><area shape="rect" id="node45" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="641,686,775,732"/><area shape="rect" id="node91" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1513,418,1551,448"/><area shape="rect" id="node130" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1256,181,1368,210"/><area shape="rect" id="node11" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1695,336,1849,365"/><area shape="rect" id="node16" href="includes_2command_8inc.html#a59d387101622883fca350211a1c486f1" title="drush_adjust_args_if\l_shebang_script" alt="" coords="1241,1404,1383,1451"/><area shape="rect" id="node35" href="includes_2command_8inc.html#a019118f49079e478cd35ca8eb17998c1" title="drush_process_bootstrap\l_to_first_arg" alt="" coords="419,1215,587,1262"/><area shape="rect" id="node110" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25" title="drush_set_arguments" alt="" coords="635,1525,781,1554"/><area shape="rect" id="node113" href="context_8inc.html#a16a51c5b09d64e968c3bd7ec414b8846" title="drush_set_config_special\l_contexts" alt="" coords="1688,243,1856,290"/><area shape="rect" id="node127" href="sitealias_8inc.html#a146cdaffbcfaa41f0a53c27cbc7e8b19" title="drush_sitealias_valid\l_alias_format" alt="" coords="432,1284,573,1331"/><area shape="rect" id="node18" href="drush_8inc.html#a8f5d18c322518e0f31f3fce0f024f2ef" title="_drush_is_drush_shebang\l_script" alt="" coords="1445,1370,1619,1416"/><area shape="rect" id="node22" href="includes_2environment_8inc.html#a87a6fcd104950fb9b0d90e25208bcf79" title="drush_has_bash" alt="" coords="1473,1266,1591,1296"/><area shape="rect" id="node31" href="context_8inc.html#aa4b55e2f6174c8b6efaa8f23a0f9e0af" title="drush_set_option" alt="" coords="1943,1404,2063,1433"/><area shape="rect" id="node20" href="drush_8inc.html#a997323f1acad3b9f003118bdcf3540c9" title="_drush_is_drush_shebang_line" alt="" coords="1672,1378,1872,1408"/><area shape="rect" id="node24" href="includes_2environment_8inc.html#acb6cf64eca1804a5f5ca34cad6e2c66b" title="drush_is_cygwin" alt="" coords="1713,1266,1831,1296"/><area shape="rect" id="node26" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="1708,810,1836,840"/><area shape="rect" id="node38" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="648,1292,768,1321"/><area shape="rect" id="node40" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="843,1370,971,1400"/><area shape="rect" id="node43" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="832,1266,981,1296"/><area shape="rect" id="node47" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="1037,802,1179,848"/><area shape="rect" id="node62" href="sitealias_8inc.html#ab58274361a02348f2d3ebf640686480b" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1467,627,1597,674"/><area shape="rect" id="node73" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1241,562,1383,608"/><area shape="rect" id="node81" href="sitealias_8inc.html#a49723d857350c5f3501001cede845fa5" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="829,524,984,571"/><area shape="rect" id="node50" href="group__filesystemfunctions.html#gafa80199035259ddf98fa300d6f646aa2" title="drush_is_absolute_path" alt="" coords="1453,754,1611,784"/><area shape="rect" id="node54" href="sitealias_8inc.html#a6812218f7e86fa00ec5c011768c63f48" title="_drush_sitealias_set\l_record_element" alt="" coords="1241,924,1383,971"/><area shape="rect" id="node56" href="includes_2environment_8inc.html#ad6ad0af63156033b1f7fe9a9409eaa7e" title="drush_valid_drupal_root" alt="" coords="1233,872,1391,901"/><area shape="rect" id="node59" href="sitealias_8inc.html#a38645e5a6d252e6f419db90c5e7e8739" title="_drush_sitealias_find\l_record_for_local_site" alt="" coords="1237,682,1387,728"/><area shape="rect" id="node68" href="sitealias_8inc.html#a03f4ae74a5e4854ac9ffee762cab07f3" title="drush_sitealias_add\l_to_alias_path" alt="" coords="1244,802,1380,848"/><area shape="rect" id="node76" href="sitealias_8inc.html#a1f4c706969fbd0d73d227a52d106b5f4" title="_drush_sitealias_add\l_static_defaults" alt="" coords="1240,1044,1384,1091"/><area shape="rect" id="node65" href="includes_2environment_8inc.html#a4f1fda8a8ff6eac8e1182b54e36f4466" title="drush_site_dir_lookup\l_from_hostname" alt="" coords="1929,627,2076,674"/><area shape="rect" id="node70" href="group__filesystemfunctions.html#ga4126321d45e8a9c454048869dd42a27c" title="drush_normalize_path" alt="" coords="1457,810,1607,840"/><area shape="rect" id="node78" href="sitealias_8inc.html#a96a1545df8b70035ba248ae3cb057d06" title="drush_sitealias_convert\l_db_from_db_url" alt="" coords="1453,1044,1611,1091"/><area shape="rect" id="node83" href="sitealias_8inc.html#a90a54eb940fe80e6e9e3faf12098cbac" title="drush_sitealias_quick\l_lookup_cached_alias\l_by_path" alt="" coords="1033,386,1183,450"/><area shape="rect" id="node98" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1237,439,1387,486"/><area shape="rect" id="node105" href="sitealias_8inc.html#af5e2a5f32557a495b31c2a72bab9586b" title="drush_sitealias_cache\l_alias_by_path" alt="" coords="1033,524,1183,571"/><area shape="rect" id="node85" href="includes_2cache_8inc.html#a70613777c5e1a0e258bd0d8e213e0156" title="drush_get_cid" alt="" coords="1261,509,1363,538"/><area shape="rect" id="node88" href="includes_2cache_8inc.html#adc36ac3b562c67cbf1d7aab89c029694" title="drush_cache_get" alt="" coords="1252,336,1372,365"/><area shape="rect" id="node93" href="includes_2drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1705,456,1839,503"/><area shape="rect" id="node95" href="includes_2drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1931,473,2075,502"/><area shape="rect" id="node115" href="context_8inc.html#a2082bda0c615dc7163f69851ddd8edaf" title="drush_expand_short\l_form_options" alt="" coords="1933,182,2072,228"/><area shape="rect" id="node117" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="2135,58,2303,88"/><area shape="rect" id="node123" href="includes_2command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="1921,251,2084,298"/><area shape="rect" id="node119" href="includes_2command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="2352,50,2515,96"/><area shape="rect" id="node133" href="includes_2command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1441,98,1623,128"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_icgraph.png" border="0" usemap="#includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_icgraph" alt=""/></div>
<map name="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_icgraph" id="includes_2command_8inc_af671cda00f17af8bc39ff470a3844bab_icgraph">
<area shape="rect" id="node3" href="preflight_8inc.html#a17ac1cc81941cb760a5101343e963f74" title="drush_preflight" alt="" coords="224,101,331,131"/><area shape="rect" id="node5" href="drush_8php.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="435,5,523,35"/><area shape="rect" id="node7" href="classUnish_1_1commandUnitCase.html#a298d93d64bbbab6ba8a1906cab4f860a" title="Unish\\commandUnitCase\l\\testCommandVersionSpecific" alt="" coords="380,58,577,105"/><area shape="rect" id="node9" href="classUnish_1_1commandUnitCase.html#a9085a0c27da209ad9697b7b0bd74adac" title="Unish\\commandUnitCase\l\\testGetCommands" alt="" coords="393,127,564,174"/><area shape="rect" id="node11" href="classUnish_1_1outputFormatUnitCase.html#a05a4cc3b83f8c8d48121fe7a508ebda2" title="Unish\\outputFormatUnitCase\l\\testOutputFormat" alt="" coords="383,197,575,243"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a069157c844a772c6fc1c5c7e63f1b613"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_shift </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Pop an argument off of drush's argument list </p>

<p>Definition at line <a class="el" href="includes_2command_8inc_source.html#l00838">838</a> of file <a class="el" href="includes_2command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="context_8inc_source.html#l00366">drush_get_arguments()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="context_8inc_source.html#l00352">drush_set_arguments()</a>, and <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="includes_2command_8inc_a069157c844a772c6fc1c5c7e63f1b613_cgraph.png" border="0" usemap="#includes_2command_8inc_a069157c844a772c6fc1c5c7e63f1b613_cgraph" alt=""/></div>
<map name="includes_2command_8inc_a069157c844a772c6fc1c5c7e63f1b613_cgraph" id="includes_2command_8inc_a069157c844a772c6fc1c5c7e63f1b613_cgraph">
<area shape="rect" id="node3" href="context_8inc.html#afaf9361f1297f29d10402b075985985a" title="drush_get_arguments" alt="" coords="336,5,483,35"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="532,57,660,87"/><area shape="rect" id="node8" href="context_8inc.html#ade90fc1aa9c39a740a20c2bf1cb97c25" title="drush_set_arguments" alt="" coords="141,109,288,139"/><area shape="rect" id="node10" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="345,109,473,139"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 8 2014 09:04:59 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>