Drush: Command dispatching functions.

  1. 7.x doxygen/html/group__dispatching.html
  2. master doxygen/html/group__dispatching.html
Drush
Command dispatching functions.

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_get_command_options_extended ($command)
 _drush_flatten_options ($options)
 drush_redispatch_get_options ()

Detailed Description

These functions handle command dispatching, and can be used to programatically invoke drush commands in different ways.

Function Documentation

_drush_flatten_options (   $options)

Return the array keys of $options, plus any 'short-form' representations that may appear in the option's value.

Definition at line 743 of file command.inc.

Referenced by _drush_verify_cli_options().

Here is the caller graph for this function:

_drush_get_command_options (   $command)

Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records.

Definition at line 708 of file command.inc.

References drush_command_invoke_all_ref().

Referenced by _drush_verify_cli_options(), drush_get_command_options_extended(), and drush_get_original_cli_args_and_options().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_invoke_hooks (   $command,
  $args 
)

Invoke Drush API calls, including all hooks.

This is an internal function; it is called from drush_dispatch via drush_command, but only if the command does not specify a 'callback' function. If a callback function is specified, it will be called instead of drush_command + _drush_invoke_hooks.

Executes the specified command with the specified arguments on the currently bootstrapped site using the current option contexts. Note that _drush_invoke_hooks will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.

Call the correct hook for all the modules that implement it. Additionally, the ability to rollback when an error has been encountered is also provided. If at any point during execution, the drush_get_error() function returns anything but 0, drush_invoke() will trigger $hook_rollback for each of the hooks that implement it, in reverse order from how they were executed. Rollbacks are also triggered any time a hook function returns FALSE.

This function will also trigger pre_$hook and post_$hook variants of the hook and its rollbacks automatically.

HOW DRUSH HOOK FUNCTIONS ARE NAMED:

The name of the hook is composed from the name of the command and the name of the command file that the command definition is declared in. The general form for the hook filename is:

 drush_COMMANDFILE_COMMANDNAME

In many cases, drush commands that are functionally part of a common collection of similar commands will all be declared in the same file, and every command defined in that file will start with the same command prefix. For example, the command file "pm.drush.inc" defines commands such as "pm-enable" and "pm-disable". In the case of "pm-enable", the command file is "pm", and and command name is "pm-enable". When the command name starts with the same sequence of characters as the command file, then the repeated sequence is dropped; thus, the command hook for "pm-enable" is "drush_pm_enable", not "drush_pm_pm_enable".

There is also a special Drupal-version-specific naming convention that may be used. To hide a commandfile from all versions of Drupal except for the specific one named, add a ".dVERSION" after the command prefix. For example, the file "views.d8.drush.inc" defines a "views" commandfile that will only load with Drupal 8. This feature is not necessary and should not be used in contrib modules (any extension with a ".module" file), since these modules are already version-specific.

Parameters
commandThe drush command to execute.
argsAn array of arguments to the command OR a single non-array argument.
Returns
The return value will be passed along to the caller if –backend option is present. A boolean FALSE indicates failure and rollback will be intitated.

This function should not be called directly.

See Also
drush_invoke() and
drush_invoke_process()

Definition at line 306 of file command.inc.

References _drush_log_drupal_messages(), annotationcommand_adapter_add_hook_options(), annotationcommand_adapter_call_hook_process_and_alter(), annotationcommand_adapter_call_initialize(), annotationcommand_adapter_command_names(), annotationcommand_adapter_get_options(), drush_command_include(), drush_commandfile_list(), drush_confirm(), drush_get_error(), drush_get_option(), drush_handle_command_output(), drush_log(), drush_set_context(), drush_set_error(), and dt().

Referenced by drush_command().

Here is the call graph for this function:

Here is the caller graph for this function:

_drush_verify_cli_options (   $command)

Fail with an error if the user specified options on the command line that are not documented in the current command record. Also verify that required options are present.

Definition at line 599 of file command.inc.

References _drush_flatten_options(), _drush_get_command_options(), drush_get_commands(), drush_get_context(), drush_get_global_options(), drush_get_option(), drush_set_error(), and dt().

Referenced by drush_dispatch().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_command ( )

Entry point for commands into the drush_invoke() API

If a command does not have a callback specified, this function will be called.

This function will trigger $hook_drush_init, then if no errors occur, it will call drush_invoke() with the command that was dispatch.

If no errors have occured, it will run $hook_drush_exit.

Definition at line 218 of file command.inc.

References _drush_invoke_hooks(), _drush_log_drupal_messages(), drush_command_implements(), drush_get_command(), drush_get_error(), drush_get_option(), drush_log(), and dt().

Here is the call graph for this function:

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

Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.

Parameters
commandA full $command such as returned by drush_get_commands(), or a string containing the name of the command record from drush_get_commands() to call.
argumentsAn array of argument values.
See Also
drush_topic_docs_topic().

Definition at line 155 of file command.inc.

References _drush_prepare_command(), _drush_verify_cli_options(), annotationcommand_adapter_add_hook_options(), drush_command_default_options(), drush_command_invoke_all_ref(), drush_load_command_engines(), drush_log(), drush_preflight_tilde_expansion(), drush_set_command(), and dt().

Referenced by Drush\Boot\BaseBoot\bootstrap_and_dispatch(), drush_invoke(), and drush_topic_core_topic().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_get_command_options_extended (   $command)

Return the list of all of the options for the given command record including options provided by engines and additional-options.

Definition at line 721 of file command.inc.

References _drush_get_command_options(), drush_get_commands(), and drush_merge_engine_data().

Referenced by drush_redispatch_get_options().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_handle_command_output (   $command,
  $structured_output 
)

Convert the structured output array provided from the Drush command into formatted output. Output is only printed for commands that define 'default-format' &/or 'default-pipe-format'; all other commands are expected to do their own output.

Definition at line 512 of file command.inc.

References drush_backend_get_result(), drush_backend_set_result(), drush_get_context(), drush_get_option(), drush_get_option_list(), drush_get_outputformat(), drush_load_engine(), drush_print(), drush_print_pipe(), drush_select_fields(), drush_set_error(), and dt().

Referenced by _drush_invoke_hooks().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Invokes a Drush API call, including all hooks.

Executes the specified command with the specified arguments on the currently bootstrapped site using the current option contexts. Note that it will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.

Commands execute with the same options that the user provided on the commandline. If you need to invoke another Drush command with options you specify, use drush_invoke_process() instead.

Parameters
string$commandThe command to invoke.
array$argumentsAn array of argument to pass into the command.
Returns
mixed|false The return value from drush_dispatch() or FALSE on error.
See Also
drush_invoke_process()

Definition at line 42 of file command.inc.

References drush_dispatch(), drush_get_commands(), drush_set_error(), and dt().

Referenced by drush_core_quick_drupal(), drush_make(), drush_pm_update(), and drush_pm_updatecode().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_invoke_process (   $site_alias_record,
  $command_name,
  $commandline_args = array(),
  $commandline_options = array(),
  $backend_options = TRUE 
)

Invoke a command in a new process, targeting the site specified by the provided site alias record.

Parameters
array$site_alias_recordThe site record to execute the command on. Use '' to run on the current site.
string$command_nameThe command to invoke.
array$commandline_argsThe arguments to pass to the command.
array$commandline_optionsThe options (e.g. –select) to provide to the command.
mixed$backend_optionsTRUE - integrate errors FALSE - do not integrate errors array -
See Also
drush_backend_invoke_concurrent There are also several options that only work when set in this parameter. They include: 'invoke-multiple' If $site_alias_record represents a single site, then 'invoke-multiple' will cause the same command with the same arguments and options to be invoked concurrently (e.g. for running concurrent batch processes). 'concurrency' Limits the number of concurrent processes that will run at the same time. Defaults to '4'. 'override-simulated' Forces the command to run, even in 'simulated' mode. Useful for commands that do not change any state on the machine, e.g. to fetch database information for sql-sync via sql-conf. 'interactive' Overrides the backend invoke process to run commands interactively. 'fork' Overrides the backend invoke process to run non blocking commands in the background. Forks a new process by adding a '&' at the end of the command. The calling process does not receive any output from the child process. The fork option is used to spawn a process that outlives its parent.
Returns
If the command could not be completed successfully, FALSE. If the command was completed, this will return an associative array containing the results of the API call.
See Also
drush_backend_get_result()

Do not change the signature of this function! drush_invoke_process is one of the key Drush APIs. See http://drupal.org/node/1152908

Definition at line 109 of file command.inc.

References drush_backend_invoke_concurrent(), drush_get_option_override(), drush_log(), drush_sitealias_resolve_sitespecs(), drush_sitealias_simplify_names(), and dt().

Referenced by drush_archive_dump(), drush_archive_restore(), drush_config_edit(), drush_config_pull(), drush_config_pull_validate(), drush_core_quick_drupal(), drush_do_command_redispatch(), drush_docs_errorcodes(), drush_pm_enable_validate(), drush_pm_post_pm_update(), drush_pm_post_pm_updatecode(), drush_pm_updatecode(), drush_preflight_command_dispatch(), drush_sitealias_add_db_settings(), drush_sitealias_resolve_path_references(), drush_ssh_site_ssh(), drush_sync_enable_post_sql_sync(), drush_user_login(), Drush\Psysh\DrushCommand\execute(), make_download_pm(), and Unish\backendUnitCase\testBackendFork().

Here is the call graph for this function:

Here is the caller graph for this function:

drush_redispatch_get_options ( )

Get the options that were passed to the current command.

This function returns an array that contains all of the options that are appropriate for forwarding along to drush_invoke_process.

Returns
An associative array of option key => value pairs.

Definition at line 771 of file command.inc.

References drush_get_command_options_extended(), drush_get_context(), drush_get_global_options(), drush_get_option(), drush_parse_command(), and drush_sitealias_site_selection_keys().

Referenced by annotationcommand_adapter_get_options(), drush_config_edit(), drush_config_pull(), drush_do_command_redispatch(), drush_preflight_command_dispatch(), drush_user_login(), and make_projects().

Here is the call graph for this function:

Here is the caller graph for this function:

File

doxygen/html/group__dispatching.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: Command dispatching functions.</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="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</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><!-- top -->
<!-- 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>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><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 class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Command dispatching functions.</div>  </div>
</div><!--header-->
<div class="contents">
<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:ga03019e7753cdfd13f17e7d05e6453486"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dispatching.html#ga03019e7753cdfd13f17e7d05e6453486">drush_get_command_options_extended</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>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<p>These functions handle command dispatching, and can be used to programatically invoke drush commands in different ways. </p>
<h2>Function Documentation</h2>
<a class="anchor" id="ga2d33822aebecae3f76bd5d19ff490d6b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_flatten_options </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Return the array keys of $options, plus any 'short-form' representations that may appear in the option's value. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00743">743</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00599">_drush_verify_cli_options()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga2d33822aebecae3f76bd5d19ff490d6b_icgraph.png" border="0" usemap="#group__dispatching_ga2d33822aebecae3f76bd5d19ff490d6b_icgraph" alt=""/></div>
<map name="group__dispatching_ga2d33822aebecae3f76bd5d19ff490d6b_icgraph" id="group__dispatching_ga2d33822aebecae3f76bd5d19ff490d6b_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="209,85,377,115"/><area shape="rect" id="node5" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="428,85,537,115"/><area shape="rect" id="node7" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="592,32,747,61"/><area shape="rect" id="node9" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="620,85,719,115"/><area shape="rect" id="node19" href="classDrush_1_1Boot_1_1BaseBoot.html#aba23d5e8ce54a9cccc926c176b9bb9eb" title="Drush\\Boot\\BaseBoot\l\\bootstrap_and_dispatch" alt="" coords="588,138,751,185"/><area shape="rect" id="node11" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="801,5,967,35"/><area shape="rect" id="node13" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="837,59,931,88"/><area shape="rect" id="node15" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="821,112,947,141"/><area shape="rect" id="node17" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="808,165,960,195"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga0edaf347ba975a7743a81eb3d7a4e38c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_get_command_options </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>Return the list of all of the options for the given command record by merging the 'options' and 'sub-options' records. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00708">708</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l01487">drush_command_invoke_all_ref()</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00599">_drush_verify_cli_options()</a>, <a class="el" href="command_8inc_source.html#l00721">drush_get_command_options_extended()</a>, and <a class="el" href="command_8inc_source.html#l01814">drush_get_original_cli_args_and_options()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_cgraph.png" border="0" usemap="#group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_cgraph" alt=""/></div>
<map name="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_cgraph" id="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_cgraph">
<area shape="rect" id="node3" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="205,23,368,70"/><area shape="rect" id="node5" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="416,32,608,61"/><area shape="rect" id="node7" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="660,5,812,35"/><area shape="rect" id="node9" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="657,59,815,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="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_icgraph.png" border="0" usemap="#group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_icgraph" alt=""/></div>
<map name="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_icgraph" id="group__dispatching_ga0edaf347ba975a7743a81eb3d7a4e38c_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="217,169,385,199"/><area shape="rect" id="node21" href="group__dispatching.html#ga03019e7753cdfd13f17e7d05e6453486" title="drush_get_command_options\l_extended" alt="" coords="205,302,397,349"/><area shape="rect" id="node57" href="command_8inc.html#a272d98da256f7ae2988f3aa7cb6b464b" title="drush_get_original\l_cli_args_and_options" alt="" coords="227,371,376,418"/><area shape="rect" id="node5" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="464,89,573,119"/><area shape="rect" id="node7" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="667,5,821,35"/><area shape="rect" id="node9" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="695,59,793,88"/><area shape="rect" id="node19" href="classDrush_1_1Boot_1_1BaseBoot.html#aba23d5e8ce54a9cccc926c176b9bb9eb" title="Drush\\Boot\\BaseBoot\l\\bootstrap_and_dispatch" alt="" coords="663,111,825,158"/><area shape="rect" id="node11" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="908,5,1073,35"/><area shape="rect" id="node13" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="944,200,1037,229"/><area shape="rect" id="node15" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="928,59,1053,88"/><area shape="rect" id="node17" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="915,112,1067,141"/><area shape="rect" id="node23" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="445,306,592,353"/><area shape="rect" id="node25" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="683,181,805,211"/><area shape="rect" id="node27" href="config_8drush_8inc.html#a1a6a43bcec612b34f954d1603e5ed27f" title="drush_config_pull" alt="" coords="683,235,805,264"/><area shape="rect" id="node29" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="691,288,797,317"/><area shape="rect" id="node36" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="684,341,804,371"/><area shape="rect" id="node38" href="annotationcommand__adapter_8inc.html#a3bd0062acd2bd2fdb6b876dbc377dfae" title="annotationcommand_adapter\l_get_options" alt="" coords="649,394,839,441"/><area shape="rect" id="node46" href="group__commandprocessing.html#ga359986c5d5f47bee7368a305f412bc9b" title="drush_do_command_redispatch" alt="" coords="641,464,847,493"/><area shape="rect" id="node48" href="preflight_8inc.html#ac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="905,495,1076,542"/><area shape="rect" id="node32" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="903,288,1079,317"/><area shape="rect" id="node34" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="1135,288,1300,317"/><area shape="rect" id="node40" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="917,352,1064,381"/><area shape="rect" id="node44" href="annotationcommand__adapter_8inc.html#a1b38f307297433a4b4178e6416a9c328" title="annotationcommand_adapter\l_process_command" alt="" coords="896,405,1085,451"/><area shape="rect" id="node42" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="1159,352,1276,381"/><area shape="rect" id="node50" href="preflight_8inc.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="1173,504,1261,533"/><area shape="rect" id="node52" href="startup_8inc.html#a9134f640e62d6ed6350a6feba22bd6aa" title="drush_run_main" alt="" coords="1349,504,1464,533"/><area shape="rect" id="node54" href="startup_8inc.html#a92b9c55a835d9b622cc8828aaa7bbcc2" title="drush_startup" alt="" coords="1512,504,1613,533"/><area shape="rect" id="node59" href="core_8drush_8inc.html#a2df55d0bcfe26bcf84f513623345b9d8" title="drush_core_execute" alt="" coords="449,377,588,407"/><area shape="rect" id="node61" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="449,431,588,460"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gac0d79cc522d6f5cecf9f72ecc5ecceb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_invoke_hooks </td>
          <td>(</td>
          <td class="paramtype">&#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>$args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoke <a class="el" href="classDrush.html">Drush</a> API calls, including all hooks.</p>
<p>This is an internal function; it is called from drush_dispatch via drush_command, but only if the command does not specify a 'callback' function. If a callback function is specified, it will be called instead of drush_command + _drush_invoke_hooks.</p>
<p>Executes the specified command with the specified arguments on the currently bootstrapped site using the current option contexts. Note that _drush_invoke_hooks will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.</p>
<p>Call the correct hook for all the modules that implement it. Additionally, the ability to rollback when an error has been encountered is also provided. If at any point during execution, the <a class="el" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44">drush_get_error()</a> function returns anything but 0, <a class="el" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1">drush_invoke()</a> will trigger $hook_rollback for each of the hooks that implement it, in reverse order from how they were executed. Rollbacks are also triggered any time a hook function returns FALSE.</p>
<p>This function will also trigger pre_$hook and post_$hook variants of the hook and its rollbacks automatically.</p>
<p>HOW DRUSH HOOK FUNCTIONS ARE NAMED:</p>
<p>The name of the hook is composed from the name of the command and the name of the command file that the command definition is declared in. The general form for the hook filename is: </p>
<pre class="fragment"> drush_COMMANDFILE_COMMANDNAME
</pre><p>In many cases, drush commands that are functionally part of a common collection of similar commands will all be declared in the same file, and every command defined in that file will start with the same command prefix. For example, the command file "pm.drush.inc" defines commands such as "pm-enable" and "pm-disable". In the case of "pm-enable", the command file is "pm", and and command name is "pm-enable". When the command name starts with the same sequence of characters as the command file, then the repeated sequence is dropped; thus, the command hook for "pm-enable" is "drush_pm_enable", not "drush_pm_pm_enable".</p>
<p>There is also a special Drupal-version-specific naming convention that may be used. To hide a commandfile from all versions of <a class="el" href="namespaceDrupal.html">Drupal</a> except for the specific one named, add a ".dVERSION" after the command prefix. For example, the file "views.d8.drush.inc" defines a "views" commandfile that will only load with <a class="el" href="namespaceDrupal.html">Drupal</a> 8. This feature is not necessary and should not be used in contrib modules (any extension with a ".module" file), since these modules are already version-specific.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>The drush command to execute. </td></tr>
    <tr><td class="paramname">args</td><td>An array of arguments to the command OR a single non-array argument. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The return value will be passed along to the caller if &ndash;backend option is present. A boolean FALSE indicates failure and rollback will be intitated.</dd></dl>
<p>This function should not be called directly. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1">drush_invoke()</a> and </dd>
<dd>
<a class="el" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process()</a> </dd></dl>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00306">306</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01418">_drush_log_drupal_messages()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00457">annotationcommand_adapter_add_hook_options()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00669">annotationcommand_adapter_call_hook_process_and_alter()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00522">annotationcommand_adapter_call_initialize()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00498">annotationcommand_adapter_command_names()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00180">annotationcommand_adapter_get_options()</a>, <a class="el" href="command_8inc_source.html#l01687">drush_command_include()</a>, <a class="el" href="command_8inc_source.html#l01575">drush_commandfile_list()</a>, <a class="el" href="drush_8inc_source.html#l00395">drush_confirm()</a>, <a class="el" href="drush_8inc_source.html#l01559">drush_get_error()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="command_8inc_source.html#l00512">drush_handle_command_output()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="context_8inc_source.html#l00293">drush_set_context()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00218">drush_command()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_gac0d79cc522d6f5cecf9f72ecc5ecceb8_cgraph.png" border="0" usemap="#group__dispatching_gac0d79cc522d6f5cecf9f72ecc5ecceb8_cgraph" alt=""/></div>
<map name="group__dispatching_gac0d79cc522d6f5cecf9f72ecc5ecceb8_cgraph" id="group__dispatching_gac0d79cc522d6f5cecf9f72ecc5ecceb8_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga15230dd6f6b5765f6c1447d4c2b73940" title="_drush_log_drupal_messages" alt="" coords="925,983,1120,1012"/><area shape="rect" id="node5" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1429,983,1507,1012"/><area shape="rect" id="node14" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1192,1291,1304,1320"/><area shape="rect" id="node21" href="annotationcommand__adapter_8inc.html#a62441a9c8bf3e543e36281d156beb63c" title="annotationcommand_adapter\l_add_hook_options" alt="" coords="207,125,396,171"/><area shape="rect" id="node23" href="annotationcommand__adapter_8inc.html#a487c84713caa54ae04350179073b64b0" title="annotationcommand_adapter\l_command_names" alt="" coords="448,125,637,171"/><area shape="rect" id="node29" href="annotationcommand__adapter_8inc.html#a025d8c0988d75e8d90371892eb44dde8" title="annotationcommand_adapter\l_call_hook_process_and_alter" alt="" coords="203,30,400,77"/><area shape="rect" id="node34" href="annotationcommand__adapter_8inc.html#a03beb960e20ecf889c5c99a8cb7e7d1f" title="annotationcommand_adapter\l_call_initialize" alt="" coords="207,253,396,299"/><area shape="rect" id="node38" href="annotationcommand__adapter_8inc.html#a3bd0062acd2bd2fdb6b876dbc377dfae" title="annotationcommand_adapter\l_get_options" alt="" coords="207,323,396,370"/><area shape="rect" id="node54" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="963,549,1083,579"/><area shape="rect" id="node63" href="command_8inc.html#abf0bb730c62cb31e3f74c36d5bc1d01a" title="drush_command_include" alt="" coords="940,929,1105,959"/><area shape="rect" id="node66" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1229,1131,1267,1160"/><area shape="rect" id="node72" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1169,1395,1327,1424"/><area shape="rect" id="node74" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="249,601,353,631"/><area shape="rect" id="node83" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="1855,907,1967,936"/><area shape="rect" id="node87" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495" title="drush_handle_command\l_output" alt="" coords="220,1233,383,1279"/><area shape="rect" id="node95" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="959,1548,1087,1577"/><area shape="rect" id="node7" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1653,1187,1739,1216"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2039,1265,2167,1295"/><area shape="rect" id="node11" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1833,1239,1988,1268"/><area shape="rect" id="node17" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1377,1343,1559,1372"/><area shape="rect" id="node25" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="700,72,863,101"/><area shape="rect" id="node27" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="972,72,1073,101"/><area shape="rect" id="node31" href="annotationcommand__adapter_8inc.html#a45e62ae2ba9cc84f30f4d95b01383902" title="annotationcommand_adapter\l_call_process_interface" alt="" coords="448,5,637,51"/><area shape="rect" id="node40" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8" title="drush_get_merged_options" alt="" coords="933,125,1112,155"/><area shape="rect" id="node45" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="469,323,616,370"/><area shape="rect" id="node42" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1173,125,1323,155"/><area shape="rect" id="node48" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="697,279,865,308"/><area shape="rect" id="node50" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="713,385,849,431"/><area shape="rect" id="node52" href="command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="703,332,860,361"/><area shape="rect" id="node60" href="group__dispatching.html#ga03019e7753cdfd13f17e7d05e6453486" title="drush_get_command_options\l_extended" alt="" coords="685,454,877,501"/><area shape="rect" id="node56" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1184,524,1312,553"/><area shape="rect" id="node68" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1401,1089,1535,1135"/><area shape="rect" id="node70" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1399,1159,1537,1188"/><area shape="rect" id="node76" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="476,524,609,553"/><area shape="rect" id="node78" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="739,575,824,604"/><area shape="rect" id="node89" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de" title="drush_backend_get_result" alt="" coords="1609,1781,1783,1811"/><area shape="rect" id="node92" href="backend_8inc.html#ad8040331b08464a2a48b7ac8a00ed13c" title="drush_backend_set_result" alt="" coords="695,1601,868,1631"/><area shape="rect" id="node98" href="outputformat_8drush_8inc.html#a9b9f691b2f676d97dc57dc3e60f57500" title="drush_get_outputformat" alt="" coords="464,1445,621,1475"/><area shape="rect" id="node103" href="engines_8inc.html#a8d6f32991f4806b9311373a0c9afcbd5" title="drush_load_engine" alt="" coords="477,1241,608,1271"/><area shape="rect" id="node129" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="471,881,615,911"/><area shape="rect" id="node132" href="group__outputfunctions.html#gaad650f1047d3ea256f7a4ca376a41191" title="drush_select_fields" alt="" coords="476,1087,609,1116"/><area shape="rect" id="node134" href="group__outputfunctions.html#ga03664ee5326159c3f8e6c97aa93c7981" title="drush_print_pipe" alt="" coords="1637,1652,1755,1681"/><area shape="rect" id="node100" href="engines_8inc.html#a34ff5c6bb43688e04d0647eddf48d553" title="drush_get_engine" alt="" coords="1849,1419,1972,1448"/><area shape="rect" id="node105" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="957,1291,1088,1320"/><area shape="rect" id="node110" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="708,1188,855,1217"/><area shape="rect" id="node115" href="commands_2core_2drupal_2environment_8inc.html#a643d851fd8dc63ea2ce8cf67aa33098c" title="drush_module_exists" alt="" coords="709,1241,853,1271"/><area shape="rect" id="node117" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="711,881,852,911"/><area shape="rect" id="node120" href="engines_8inc.html#a1eb2ea4e50529f3c7953f419956ce51a" title="drush_set_engine" alt="" coords="720,1497,843,1527"/></map>
</div>
</p>

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

</div>
</div>
<a class="anchor" id="ga1e55a13b320525b6871dacc7265bf5a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">_drush_verify_cli_options </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>Fail with an error if the user specified options on the command line that are not documented in the current command record. Also verify that required options are present. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00599">599</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l00743">_drush_flatten_options()</a>, <a class="el" href="command_8inc_source.html#l00708">_drush_get_command_options()</a>, <a class="el" href="command_8inc_source.html#l01079">drush_get_commands()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l00271">drush_get_global_options()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00155">drush_dispatch()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_cgraph.png" border="0" usemap="#group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_cgraph" alt=""/></div>
<map name="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_cgraph" id="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga2d33822aebecae3f76bd5d19ff490d6b" title="_drush_flatten_options" alt="" coords="233,128,385,157"/><area shape="rect" id="node5" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="235,181,384,227"/><area shape="rect" id="node15" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="235,304,384,333"/><area shape="rect" id="node23" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1945,527,2073,556"/><area shape="rect" id="node40" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="956,356,1076,385"/><area shape="rect" id="node52" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="997,521,1035,551"/><area shape="rect" id="node77" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="960,661,1072,691"/><area shape="rect" id="node99" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="225,251,393,280"/><area shape="rect" id="node7" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="456,5,619,51"/><area shape="rect" id="node9" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="680,99,872,128"/><area shape="rect" id="node11" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="940,96,1092,125"/><area shape="rect" id="node13" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="937,149,1095,179"/><area shape="rect" id="node17" href="annotationcommand__adapter_8inc.html#ab6de77ae3ed2b35a4f8e73dcc404a28c" title="annotationcommand_adapter\l_commands" alt="" coords="443,234,632,281"/><area shape="rect" id="node48" href="command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="451,304,624,333"/><area shape="rect" id="node65" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="451,540,624,569"/><area shape="rect" id="node19" href="annotationcommand__adapter_8inc.html#afa56c7af0c6e97d1f4eab6a824679e94" title="annotationcommand_adapter\l_get_commands" alt="" coords="1160,162,1349,209"/><area shape="rect" id="node38" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="704,304,848,333"/><area shape="rect" id="node21" href="annotationcommand__adapter_8inc.html#af939e17ed499fc288bb7ee5f5bc53c4e" title="annotationcommand_adapter\l_create_commandfile_instance" alt="" coords="1693,91,1896,138"/><area shape="rect" id="node31" href="annotationcommand__adapter_8inc.html#a79d386a5c3df763772ee0c6d82e45b31" title="annotationcommand_adapter\l_get_commands_for_commandhandler" alt="" coords="1399,162,1644,209"/><area shape="rect" id="node25" href="classDrush.html#a1ba34a33c359b25ee1e8047576cd7e1b" title="Drush\\runner" alt="" coords="1961,100,2057,129"/><area shape="rect" id="node27" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1959,213,2060,243"/><area shape="rect" id="node29" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2124,213,2257,243"/><area shape="rect" id="node33" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="1713,161,1876,191"/><area shape="rect" id="node42" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1191,356,1319,385"/><area shape="rect" id="node44" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1180,303,1329,332"/><area shape="rect" id="node50" href="command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="685,408,867,437"/><area shape="rect" id="node54" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1188,459,1321,506"/><area shape="rect" id="node62" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1185,529,1324,559"/><area shape="rect" id="node56" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1449,367,1593,396"/><area shape="rect" id="node58" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1712,265,1877,295"/><area shape="rect" id="node68" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="921,583,1111,612"/><area shape="rect" id="node72" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="711,565,841,595"/><area shape="rect" id="node94" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="705,461,847,491"/><area shape="rect" id="node70" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1164,583,1345,612"/><area shape="rect" id="node81" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1717,635,1872,664"/><area shape="rect" id="node84" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1216,687,1293,716"/><area shape="rect" id="node86" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1479,687,1564,716"/><area shape="rect" id="node89" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1747,525,1843,555"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_icgraph.png" border="0" usemap="#group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_icgraph" alt=""/></div>
<map name="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_icgraph" id="group__dispatching_ga1e55a13b320525b6871dacc7265bf5a7_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="225,85,335,115"/><area shape="rect" id="node5" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="389,32,544,61"/><area shape="rect" id="node7" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="417,85,516,115"/><area shape="rect" id="node17" href="classDrush_1_1Boot_1_1BaseBoot.html#aba23d5e8ce54a9cccc926c176b9bb9eb" title="Drush\\Boot\\BaseBoot\l\\bootstrap_and_dispatch" alt="" coords="385,138,548,185"/><area shape="rect" id="node9" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="599,5,764,35"/><area shape="rect" id="node11" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="635,59,728,88"/><area shape="rect" id="node13" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="619,112,744,141"/><area shape="rect" id="node15" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="605,165,757,195"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gae7a7f1f4b8c5edffbc2ececc6638698a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Entry point for commands into the <a class="el" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1">drush_invoke()</a> API</p>
<p>If a command does not have a callback specified, this function will be called.</p>
<p>This function will trigger $hook_drush_init, then if no errors occur, it will call <a class="el" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1">drush_invoke()</a> with the command that was dispatch.</p>
<p>If no errors have occured, it will run $hook_drush_exit. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00218">218</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l00306">_drush_invoke_hooks()</a>, <a class="el" href="drush_8inc_source.html#l01418">_drush_log_drupal_messages()</a>, <a class="el" href="command_8inc_source.html#l01520">drush_command_implements()</a>, <a class="el" href="context_8inc_source.html#l00387">drush_get_command()</a>, <a class="el" href="drush_8inc_source.html#l01559">drush_get_error()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_gae7a7f1f4b8c5edffbc2ececc6638698a_cgraph.png" border="0" usemap="#group__dispatching_gae7a7f1f4b8c5edffbc2ececc6638698a_cgraph" alt=""/></div>
<map name="group__dispatching_gae7a7f1f4b8c5edffbc2ececc6638698a_cgraph" id="group__dispatching_gae7a7f1f4b8c5edffbc2ececc6638698a_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="196,1427,343,1456"/><area shape="rect" id="node5" href="group__logging.html#ga15230dd6f6b5765f6c1447d4c2b73940" title="_drush_log_drupal_messages" alt="" coords="415,1529,609,1559"/><area shape="rect" id="node7" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1189,1575,1267,1604"/><area shape="rect" id="node59" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1168,552,1288,581"/><area shape="rect" id="node71" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="973,1075,1011,1104"/><area shape="rect" id="node91" href="group__errorhandling.html#ga33fe8456b3dc49a0e28e7f63692a0d44" title="drush_get_error" alt="" coords="456,276,568,305"/><area shape="rect" id="node130" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="173,1873,365,1903"/><area shape="rect" id="node135" href="context_8inc.html#a8fc57227375a540fea5314b154576354" title="drush_get_command" alt="" coords="199,132,340,161"/><area shape="rect" id="node20" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="936,1416,1048,1445"/><area shape="rect" id="node27" href="annotationcommand__adapter_8inc.html#a62441a9c8bf3e543e36281d156beb63c" title="annotationcommand_adapter\l_add_hook_options" alt="" coords="417,1683,607,1730"/><area shape="rect" id="node29" href="annotationcommand__adapter_8inc.html#a487c84713caa54ae04350179073b64b0" title="annotationcommand_adapter\l_command_names" alt="" coords="659,1682,848,1729"/><area shape="rect" id="node34" href="annotationcommand__adapter_8inc.html#a025d8c0988d75e8d90371892eb44dde8" title="annotationcommand_adapter\l_call_hook_process_and_alter" alt="" coords="413,1753,611,1799"/><area shape="rect" id="node39" href="annotationcommand__adapter_8inc.html#a03beb960e20ecf889c5c99a8cb7e7d1f" title="annotationcommand_adapter\l_call_initialize" alt="" coords="659,1871,848,1918"/><area shape="rect" id="node43" href="annotationcommand__adapter_8inc.html#a3bd0062acd2bd2fdb6b876dbc377dfae" title="annotationcommand_adapter\l_get_options" alt="" coords="417,329,607,375"/><area shape="rect" id="node68" href="command_8inc.html#abf0bb730c62cb31e3f74c36d5bc1d01a" title="drush_command_include" alt="" coords="671,1427,836,1456"/><area shape="rect" id="node80" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="433,1873,591,1903"/><area shape="rect" id="node82" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="460,604,564,633"/><area shape="rect" id="node95" href="group__dispatching.html#gaec7e84c5668d8e13f33c948659112495" title="drush_handle_command\l_output" alt="" coords="431,1002,593,1049"/><area shape="rect" id="node103" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="928,1135,1056,1164"/><area shape="rect" id="node9" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1413,1545,1499,1575"/><area shape="rect" id="node11" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1799,909,1927,939"/><area shape="rect" id="node13" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1623,1571,1719,1600"/><area shape="rect" id="node17" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1593,1441,1748,1471"/><area shape="rect" id="node15" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1812,1599,1913,1628"/><area shape="rect" id="node23" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1137,1337,1319,1367"/><area shape="rect" id="node31" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="911,1781,1073,1811"/><area shape="rect" id="node36" href="annotationcommand__adapter_8inc.html#a45e62ae2ba9cc84f30f4d95b01383902" title="annotationcommand_adapter\l_call_process_interface" alt="" coords="659,1802,848,1849"/><area shape="rect" id="node45" href="context_8inc.html#a72dfb89d6a4ba0bb143e3256f997d2b8" title="drush_get_merged_options" alt="" coords="1139,104,1317,133"/><area shape="rect" id="node50" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="680,327,827,374"/><area shape="rect" id="node47" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1381,353,1531,383"/><area shape="rect" id="node53" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="908,275,1076,304"/><area shape="rect" id="node55" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="924,327,1060,374"/><area shape="rect" id="node57" href="command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="913,397,1071,427"/><area shape="rect" id="node65" href="group__dispatching.html#ga03019e7753cdfd13f17e7d05e6453486" title="drush_get_command_options\l_extended" alt="" coords="896,205,1088,251"/><area shape="rect" id="node61" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1392,552,1520,581"/><area shape="rect" id="node73" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1161,1066,1295,1113"/><area shape="rect" id="node78" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1159,1013,1297,1043"/><area shape="rect" id="node75" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1599,1044,1743,1073"/><area shape="rect" id="node84" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="687,451,820,480"/><area shape="rect" id="node86" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="949,552,1035,581"/><area shape="rect" id="node97" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de" title="drush_backend_get_result" alt="" coords="1369,909,1543,939"/><area shape="rect" id="node100" href="backend_8inc.html#ad8040331b08464a2a48b7ac8a00ed13c" title="drush_backend_set_result" alt="" coords="667,1064,840,1093"/><area shape="rect" id="node106" href="outputformat_8drush_8inc.html#a9b9f691b2f676d97dc57dc3e60f57500" title="drush_get_outputformat" alt="" coords="675,1011,832,1040"/><area shape="rect" id="node108" href="engines_8inc.html#a8d6f32991f4806b9311373a0c9afcbd5" title="drush_load_engine" alt="" coords="688,1171,819,1200"/><area shape="rect" id="node116" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="920,781,1064,811"/><area shape="rect" id="node119" href="group__outputfunctions.html#gaad650f1047d3ea256f7a4ca376a41191" title="drush_select_fields" alt="" coords="687,1117,820,1147"/><area shape="rect" id="node121" href="group__outputfunctions.html#ga03664ee5326159c3f8e6c97aa93c7981" title="drush_print_pipe" alt="" coords="1612,1229,1729,1259"/><area shape="rect" id="node132" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="436,1927,588,1956"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga5db6ec7318291b3692bf905b87a9276b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_dispatch </td>
          <td>(</td>
          <td class="paramtype">&#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>Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">command</td><td>A full $command such as returned by <a class="el" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452">drush_get_commands()</a>, or a string containing the name of the command record from <a class="el" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452">drush_get_commands()</a> to call. </td></tr>
    <tr><td class="paramname">arguments</td><td>An array of argument values.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd>drush_topic_docs_topic(). </dd></dl>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00155">155</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l01446">_drush_prepare_command()</a>, <a class="el" href="command_8inc_source.html#l00599">_drush_verify_cli_options()</a>, <a class="el" href="annotationcommand__adapter_8inc_source.html#l00457">annotationcommand_adapter_add_hook_options()</a>, <a class="el" href="command_8inc_source.html#l01714">drush_command_default_options()</a>, <a class="el" href="command_8inc_source.html#l01487">drush_command_invoke_all_ref()</a>, <a class="el" href="engines_8inc_source.html#l00139">drush_load_command_engines()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="preflight_8inc_source.html#l00937">drush_preflight_tilde_expansion()</a>, <a class="el" href="context_8inc_source.html#l00380">drush_set_command()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="BaseBoot_8php_source.html#l00052">Drush\Boot\BaseBoot\bootstrap_and_dispatch()</a>, <a class="el" href="command_8inc_source.html#l00042">drush_invoke()</a>, and <a class="el" href="topic_8drush_8inc_source.html#l00054">drush_topic_core_topic()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_cgraph.png" border="0" usemap="#group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_cgraph" alt=""/></div>
<map name="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_cgraph" id="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_cgraph">
<area shape="rect" id="node3" href="command_8inc.html#a6a908a954cb96c0e4dadb715cd72cae4" title="_drush_prepare_command" alt="" coords="173,5,347,35"/><area shape="rect" id="node5" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="176,477,344,507"/><area shape="rect" id="node11" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="653,159,816,206"/><area shape="rect" id="node41" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1195,900,1232,929"/><area shape="rect" id="node70" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1411,1427,1488,1456"/><area shape="rect" id="node94" href="annotationcommand__adapter_8inc.html#a62441a9c8bf3e543e36281d156beb63c" title="annotationcommand_adapter\l_add_hook_options" alt="" coords="165,1562,355,1609"/><area shape="rect" id="node101" href="command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="1801,39,1964,86"/><area shape="rect" id="node105" href="engines_8inc.html#a04e206fccfe9fe74aacda617336f5b87" title="drush_load_command\l_engines" alt="" coords="185,1066,335,1113"/><area shape="rect" id="node131" href="preflight_8inc.html#a40f2e67836d5b69b16e91e88db85eb5a" title="drush_preflight_tilde\l_expansion" alt="" coords="191,894,329,941"/><area shape="rect" id="node136" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203" title="drush_set_command" alt="" coords="664,1408,805,1437"/><area shape="rect" id="node7" href="group__dispatching.html#ga2d33822aebecae3f76bd5d19ff490d6b" title="_drush_flatten_options" alt="" coords="421,477,573,507"/><area shape="rect" id="node9" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="423,238,572,285"/><area shape="rect" id="node19" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="423,395,572,424"/><area shape="rect" id="node25" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2015,696,2143,725"/><area shape="rect" id="node29" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1153,537,1273,567"/><area shape="rect" id="node63" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1157,1052,1269,1081"/><area shape="rect" id="node88" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="413,333,581,363"/><area shape="rect" id="node13" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="877,211,1069,240"/><area shape="rect" id="node15" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1137,208,1289,237"/><area shape="rect" id="node17" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1135,261,1292,291"/><area shape="rect" id="node21" href="annotationcommand__adapter_8inc.html#ab6de77ae3ed2b35a4f8e73dcc404a28c" title="annotationcommand_adapter\l_commands" alt="" coords="640,371,829,418"/><area shape="rect" id="node37" href="command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="648,759,821,788"/><area shape="rect" id="node51" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="648,652,821,681"/><area shape="rect" id="node23" href="annotationcommand__adapter_8inc.html#afa56c7af0c6e97d1f4eab6a824679e94" title="annotationcommand_adapter\l_get_commands" alt="" coords="879,365,1068,411"/><area shape="rect" id="node27" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="901,485,1045,515"/><area shape="rect" id="node31" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1385,539,1513,568"/><area shape="rect" id="node33" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1375,485,1524,515"/><area shape="rect" id="node39" href="command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="883,848,1064,877"/><area shape="rect" id="node43" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1383,915,1516,962"/><area shape="rect" id="node48" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1380,809,1519,839"/><area shape="rect" id="node45" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1599,809,1743,839"/><area shape="rect" id="node54" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1119,795,1308,824"/><area shape="rect" id="node58" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="908,795,1039,824"/><area shape="rect" id="node83" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="903,741,1044,771"/><area shape="rect" id="node56" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1359,863,1540,892"/><area shape="rect" id="node67" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1805,1311,1960,1340"/><area shape="rect" id="node72" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1628,1427,1713,1456"/><area shape="rect" id="node75" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1835,1480,1931,1509"/><area shape="rect" id="node77" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2028,1508,2129,1537"/><area shape="rect" id="node79" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2193,1508,2327,1537"/><area shape="rect" id="node96" href="annotationcommand__adapter_8inc.html#a487c84713caa54ae04350179073b64b0" title="annotationcommand_adapter\l_command_names" alt="" coords="403,1613,592,1659"/><area shape="rect" id="node98" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="1589,1539,1752,1568"/><area shape="rect" id="node107" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="423,1135,572,1182"/><area shape="rect" id="node110" href="engines_8inc.html#a316fd3a909b19c6b88ce4ffc521756da" title="drush_get_command_engine\l_config" alt="" coords="641,1135,828,1182"/><area shape="rect" id="node114" href="engines_8inc.html#a8d6f32991f4806b9311373a0c9afcbd5" title="drush_load_engine" alt="" coords="669,1029,800,1059"/><area shape="rect" id="node118" href="engines_8inc.html#a1eb2ea4e50529f3c7953f419956ce51a" title="drush_set_engine" alt="" coords="912,1256,1035,1285"/><area shape="rect" id="node120" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1149,1360,1277,1389"/><area shape="rect" id="node134" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="429,911,565,940"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_icgraph.png" border="0" usemap="#group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_icgraph" alt=""/></div>
<map name="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_icgraph" id="group__dispatching_ga5db6ec7318291b3692bf905b87a9276b_icgraph">
<area shape="rect" id="node3" href="classDrush_1_1Boot_1_1BaseBoot.html#aba23d5e8ce54a9cccc926c176b9bb9eb" title="Drush\\Boot\\BaseBoot\l\\bootstrap_and_dispatch" alt="" coords="167,15,329,62"/><area shape="rect" id="node5" href="group__dispatching.html#gad45b0ad6ccdc34ebb10d38d5c2d6a1d1" title="drush_invoke" alt="" coords="199,85,297,115"/><area shape="rect" id="node15" href="topic_8drush_8inc.html#ae8a604f9b99910a82bc193b3d11490cc" title="drush_topic_core_topic" alt="" coords="171,139,325,168"/><area shape="rect" id="node7" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="380,5,545,35"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="416,59,509,88"/><area shape="rect" id="node11" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="400,112,525,141"/><area shape="rect" id="node13" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="387,165,539,195"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga03019e7753cdfd13f17e7d05e6453486"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_get_command_options_extended </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>Return the list of all of the options for the given command record including options provided by engines and additional-options. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00721">721</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l00708">_drush_get_command_options()</a>, <a class="el" href="command_8inc_source.html#l01079">drush_get_commands()</a>, and <a class="el" href="engines_8inc_source.html#l00192">drush_merge_engine_data()</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00771">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="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_cgraph.png" border="0" usemap="#group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_cgraph" alt=""/></div>
<map name="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_cgraph" id="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="247,55,396,102"/><area shape="rect" id="node13" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="247,175,396,204"/><area shape="rect" id="node63" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="447,331,620,360"/><area shape="rect" id="node5" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="452,5,615,51"/><area shape="rect" id="node7" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="669,21,861,51"/><area shape="rect" id="node9" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="929,69,1081,99"/><area shape="rect" id="node11" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="927,123,1084,152"/><area shape="rect" id="node15" href="annotationcommand__adapter_8inc.html#ab6de77ae3ed2b35a4f8e73dcc404a28c" title="annotationcommand_adapter\l_commands" alt="" coords="1149,61,1339,107"/><area shape="rect" id="node46" href="command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="447,227,620,256"/><area shape="rect" id="node17" href="annotationcommand__adapter_8inc.html#afa56c7af0c6e97d1f4eab6a824679e94" title="annotationcommand_adapter\l_get_commands" alt="" coords="1387,29,1576,75"/><area shape="rect" id="node21" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1939,252,2067,281"/><area shape="rect" id="node36" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="1409,200,1553,229"/><area shape="rect" id="node19" href="annotationcommand__adapter_8inc.html#af939e17ed499fc288bb7ee5f5bc53c4e" title="annotationcommand_adapter\l_create_commandfile_instance" alt="" coords="1647,10,1849,57"/><area shape="rect" id="node29" href="annotationcommand__adapter_8inc.html#a79d386a5c3df763772ee0c6d82e45b31" title="annotationcommand_adapter\l_get_commands_for_commandhandler" alt="" coords="1625,79,1871,126"/><area shape="rect" id="node23" href="classDrush.html#a1ba34a33c359b25ee1e8047576cd7e1b" title="Drush\\runner" alt="" coords="1955,19,2051,48"/><area shape="rect" id="node25" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2135,160,2236,189"/><area shape="rect" id="node27" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2287,160,2420,189"/><area shape="rect" id="node31" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="1921,131,2084,160"/><area shape="rect" id="node38" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1688,484,1808,513"/><area shape="rect" id="node40" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1939,431,2067,460"/><area shape="rect" id="node42" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1928,484,2077,513"/><area shape="rect" id="node48" href="command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="675,227,856,256"/><area shape="rect" id="node50" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="987,227,1024,256"/><area shape="rect" id="node52" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1177,130,1311,177"/><area shape="rect" id="node60" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1175,200,1313,229"/><area shape="rect" id="node54" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1676,200,1820,229"/><area shape="rect" id="node56" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1920,188,2085,217"/><area shape="rect" id="node66" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="911,383,1100,412"/><area shape="rect" id="node70" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="700,331,831,360"/><area shape="rect" id="node92" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="1411,497,1552,527"/><area shape="rect" id="node68" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1153,408,1335,437"/><area shape="rect" id="node75" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="949,329,1061,359"/><area shape="rect" id="node79" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1671,304,1825,333"/><area shape="rect" id="node82" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1205,355,1283,384"/><area shape="rect" id="node84" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1439,355,1524,384"/><area shape="rect" id="node87" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1700,537,1796,567"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_icgraph.png" border="0" usemap="#group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_icgraph" alt=""/></div>
<map name="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_icgraph" id="group__dispatching_ga03019e7753cdfd13f17e7d05e6453486_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga9b1a98376983ee529fc868ef4280b12d" title="drush_redispatch_get\l_options" alt="" coords="245,157,392,203"/><area shape="rect" id="node5" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="483,5,605,35"/><area shape="rect" id="node7" href="config_8drush_8inc.html#a1a6a43bcec612b34f954d1603e5ed27f" title="drush_config_pull" alt="" coords="483,59,605,88"/><area shape="rect" id="node9" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="491,112,597,141"/><area shape="rect" id="node17" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="484,165,604,195"/><area shape="rect" id="node19" href="annotationcommand__adapter_8inc.html#a3bd0062acd2bd2fdb6b876dbc377dfae" title="annotationcommand_adapter\l_get_options" alt="" coords="449,218,639,265"/><area shape="rect" id="node27" href="group__commandprocessing.html#ga359986c5d5f47bee7368a305f412bc9b" title="drush_do_command_redispatch" alt="" coords="441,288,647,317"/><area shape="rect" id="node29" href="preflight_8inc.html#ac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="705,310,876,357"/><area shape="rect" id="node11" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="744,65,837,95"/><area shape="rect" id="node13" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="703,119,879,148"/><area shape="rect" id="node15" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="935,119,1100,148"/><area shape="rect" id="node21" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="717,177,864,207"/><area shape="rect" id="node25" href="annotationcommand__adapter_8inc.html#a1b38f307297433a4b4178e6416a9c328" title="annotationcommand_adapter\l_process_command" alt="" coords="696,230,885,277"/><area shape="rect" id="node23" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="959,177,1076,207"/><area shape="rect" id="node31" href="preflight_8inc.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="973,319,1061,348"/><area shape="rect" id="node33" href="startup_8inc.html#a9134f640e62d6ed6350a6feba22bd6aa" title="drush_run_main" alt="" coords="1149,319,1264,348"/><area shape="rect" id="node35" href="startup_8inc.html#a92b9c55a835d9b622cc8828aaa7bbcc2" title="drush_startup" alt="" coords="1312,319,1413,348"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gaec7e84c5668d8e13f33c948659112495"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_handle_command_output </td>
          <td>(</td>
          <td class="paramtype">&#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>$structured_output</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Convert the structured output array provided from the <a class="el" href="classDrush.html">Drush</a> command into formatted output. Output is only printed for commands that define 'default-format' &amp;/or 'default-pipe-format'; all other commands are expected to do their own output. </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00512">512</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00129">drush_backend_get_result()</a>, <a class="el" href="backend_8inc_source.html#l00086">drush_backend_set_result()</a>, <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>, <a class="el" href="context_8inc_source.html#l00446">drush_get_option_list()</a>, <a class="el" href="outputformat_8drush_8inc_source.html#l00011">drush_get_outputformat()</a>, <a class="el" href="engines_8inc_source.html#l00461">drush_load_engine()</a>, <a class="el" href="output_8inc_source.html#l00028">drush_print()</a>, <a class="el" href="output_8inc_source.html#l00060">drush_print_pipe()</a>, <a class="el" href="output_8inc_source.html#l00365">drush_select_fields()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="command_8inc_source.html#l00306">_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="group__dispatching_gaec7e84c5668d8e13f33c948659112495_cgraph.png" border="0" usemap="#group__dispatching_gaec7e84c5668d8e13f33c948659112495_cgraph" alt=""/></div>
<map name="group__dispatching_gaec7e84c5668d8e13f33c948659112495_cgraph" id="group__dispatching_gaec7e84c5668d8e13f33c948659112495_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de" title="drush_backend_get_result" alt="" coords="1287,161,1460,191"/><area shape="rect" id="node5" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1724,368,1852,397"/><area shape="rect" id="node7" href="backend_8inc.html#ad8040331b08464a2a48b7ac8a00ed13c" title="drush_backend_set_result" alt="" coords="412,365,585,395"/><area shape="rect" id="node14" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="640,213,760,243"/><area shape="rect" id="node21" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="217,217,361,247"/><area shape="rect" id="node24" href="outputformat_8drush_8inc.html#a9b9f691b2f676d97dc57dc3e60f57500" title="drush_get_outputformat" alt="" coords="1067,368,1224,397"/><area shape="rect" id="node29" href="engines_8inc.html#a8d6f32991f4806b9311373a0c9afcbd5" title="drush_load_engine" alt="" coords="224,599,355,628"/><area shape="rect" id="node41" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="853,732,965,761"/><area shape="rect" id="node60" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="891,572,928,601"/><area shape="rect" id="node97" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="247,295,332,324"/><area shape="rect" id="node100" href="group__outputfunctions.html#ga03664ee5326159c3f8e6c97aa93c7981" title="drush_print_pipe" alt="" coords="1533,5,1651,35"/><area shape="rect" id="node103" href="group__outputfunctions.html#gaad650f1047d3ea256f7a4ca376a41191" title="drush_select_fields" alt="" coords="223,883,356,912"/><area shape="rect" id="node10" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="636,419,764,448"/><area shape="rect" id="node16" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="845,213,973,243"/><area shape="rect" id="node18" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="835,160,984,189"/><area shape="rect" id="node26" href="engines_8inc.html#a34ff5c6bb43688e04d0647eddf48d553" title="drush_get_engine" alt="" coords="1312,368,1435,397"/><area shape="rect" id="node31" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="635,883,765,912"/><area shape="rect" id="node72" href="engines_8inc.html#a92390a2dd40c8ed5190be4af058813a8" title="drush_include_engine" alt="" coords="425,677,572,707"/><area shape="rect" id="node87" href="commands_2core_2drupal_2environment_8inc.html#a643d851fd8dc63ea2ce8cf67aa33098c" title="drush_module_exists" alt="" coords="427,624,571,653"/><area shape="rect" id="node89" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="428,312,569,341"/><area shape="rect" id="node92" href="engines_8inc.html#a1eb2ea4e50529f3c7953f419956ce51a" title="drush_set_engine" alt="" coords="437,520,560,549"/><area shape="rect" id="node33" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="833,808,985,837"/><area shape="rect" id="node35" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="831,861,988,891"/><area shape="rect" id="node37" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="815,915,1004,944"/><area shape="rect" id="node39" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1055,849,1236,879"/><area shape="rect" id="node45" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1515,580,1669,609"/><area shape="rect" id="node48" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1107,684,1184,713"/><area shape="rect" id="node50" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1331,684,1416,713"/><area shape="rect" id="node53" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1544,684,1640,713"/><area shape="rect" id="node55" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1737,605,1839,635"/><area shape="rect" id="node57" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1903,605,2036,635"/><area shape="rect" id="node62" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1079,563,1212,610"/><area shape="rect" id="node70" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1076,511,1215,540"/><area shape="rect" id="node64" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1301,527,1445,556"/><area shape="rect" id="node66" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1509,527,1675,556"/><area shape="rect" id="node74" href="drush_8inc.html#ac0c5cc8dc02832fb068ca98efd0712c4" title="drush_get_class" alt="" coords="641,677,759,707"/><area shape="rect" id="node80" href="drush_8inc.html#a80ce43b30f833522f72180811dab5a3e" title="drush_include" alt="" coords="649,624,751,653"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_gaec7e84c5668d8e13f33c948659112495_icgraph.png" border="0" usemap="#group__dispatching_gaec7e84c5668d8e13f33c948659112495_icgraph" alt=""/></div>
<map name="group__dispatching_gaec7e84c5668d8e13f33c948659112495_icgraph" id="group__dispatching_gaec7e84c5668d8e13f33c948659112495_icgraph">
<area shape="rect" id="node3" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="217,13,364,43"/><area shape="rect" id="node5" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="415,13,532,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="gad45b0ad6ccdc34ebb10d38d5c2d6a1d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_invoke </td>
          <td>(</td>
          <td class="paramtype">&#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>Invokes a <a class="el" href="classDrush.html">Drush</a> API call, including all hooks.</p>
<p>Executes the specified command with the specified arguments on the currently bootstrapped site using the current option contexts. Note that it will not bootstrap any further than the current command has already bootstrapped; therefore, you should only invoke commands that have the same (or lower) bootstrap requirements.</p>
<p>Commands execute with the same options that the user provided on the commandline. If you need to invoke another <a class="el" href="classDrush.html">Drush</a> command with options you specify, use <a class="el" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process()</a> instead.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$command</td><td>The command to invoke. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$arguments</td><td>An array of argument to pass into the command.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>mixed|false The return value from <a class="el" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b">drush_dispatch()</a> or FALSE on error.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="group__dispatching.html#ga125471885af052278a0874446b332cf9">drush_invoke_process()</a> </dd></dl>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00042">42</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l00155">drush_dispatch()</a>, <a class="el" href="command_8inc_source.html#l01079">drush_get_commands()</a>, <a class="el" href="drush_8inc_source.html#l01525">drush_set_error()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="core_8drush_8inc_source.html#l00888">drush_core_quick_drupal()</a>, <a class="el" href="make_8drush_8inc_source.html#l00300">drush_make()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01344">drush_pm_update()</a>, and <a class="el" href="updatecode_8pm_8inc_source.html#l00019">drush_pm_updatecode()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_cgraph.png" border="0" usemap="#group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_cgraph" alt=""/></div>
<map name="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_cgraph" id="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga5db6ec7318291b3692bf905b87a9276b" title="drush_dispatch" alt="" coords="153,869,263,899"/><area shape="rect" id="node21" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="569,556,719,585"/><area shape="rect" id="node43" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1341,708,1379,737"/><area shape="rect" id="node65" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1304,1221,1416,1251"/><area shape="rect" id="node5" href="command_8inc.html#a6a908a954cb96c0e4dadb715cd72cae4" title="_drush_prepare_command" alt="" coords="320,923,493,952"/><area shape="rect" id="node7" href="group__dispatching.html#ga1e55a13b320525b6871dacc7265bf5a7" title="_drush_verify_cli_options" alt="" coords="323,869,491,899"/><area shape="rect" id="node13" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="800,861,963,907"/><area shape="rect" id="node72" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1557,1551,1635,1580"/><area shape="rect" id="node94" href="annotationcommand__adapter_8inc.html#a62441a9c8bf3e543e36281d156beb63c" title="annotationcommand_adapter\l_add_hook_options" alt="" coords="312,1475,501,1522"/><area shape="rect" id="node101" href="command_8inc.html#ad5dd93fad069d6ba73b3546d26855071" title="drush_command_default\l_options" alt="" coords="1948,5,2111,51"/><area shape="rect" id="node105" href="engines_8inc.html#a04e206fccfe9fe74aacda617336f5b87" title="drush_load_command\l_engines" alt="" coords="332,1057,481,1103"/><area shape="rect" id="node131" href="preflight_8inc.html#a40f2e67836d5b69b16e91e88db85eb5a" title="drush_preflight_tilde\l_expansion" alt="" coords="337,198,476,245"/><area shape="rect" id="node136" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203" title="drush_set_command" alt="" coords="811,1509,952,1539"/><area shape="rect" id="node9" href="group__dispatching.html#ga2d33822aebecae3f76bd5d19ff490d6b" title="_drush_flatten_options" alt="" coords="568,1085,720,1115"/><area shape="rect" id="node11" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="569,861,719,907"/><area shape="rect" id="node27" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2161,1076,2289,1105"/><area shape="rect" id="node31" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1300,451,1420,480"/><area shape="rect" id="node88" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="560,931,728,960"/><area shape="rect" id="node15" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="1024,965,1216,995"/><area shape="rect" id="node17" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1284,912,1436,941"/><area shape="rect" id="node19" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1281,965,1439,995"/><area shape="rect" id="node23" href="annotationcommand__adapter_8inc.html#ab6de77ae3ed2b35a4f8e73dcc404a28c" title="annotationcommand_adapter\l_commands" alt="" coords="787,202,976,249"/><area shape="rect" id="node39" href="command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="795,556,968,585"/><area shape="rect" id="node53" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="795,503,968,532"/><area shape="rect" id="node25" href="annotationcommand__adapter_8inc.html#afa56c7af0c6e97d1f4eab6a824679e94" title="annotationcommand_adapter\l_get_commands" alt="" coords="1025,175,1215,222"/><area shape="rect" id="node29" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="1048,245,1192,275"/><area shape="rect" id="node33" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1532,451,1660,480"/><area shape="rect" id="node35" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1521,504,1671,533"/><area shape="rect" id="node41" href="command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="1029,555,1211,584"/><area shape="rect" id="node45" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1529,1101,1663,1147"/><area shape="rect" id="node50" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1527,708,1665,737"/><area shape="rect" id="node47" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1745,1105,1889,1135"/><area shape="rect" id="node56" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1265,859,1455,888"/><area shape="rect" id="node60" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="1055,912,1185,941"/><area shape="rect" id="node83" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="1049,451,1191,480"/><area shape="rect" id="node58" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1505,1171,1687,1200"/><area shape="rect" id="node69" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1952,1376,2107,1405"/><area shape="rect" id="node74" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1775,1539,1860,1568"/><area shape="rect" id="node77" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1981,1545,2077,1575"/><area shape="rect" id="node79" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2175,1575,2276,1604"/><area shape="rect" id="node96" href="annotationcommand__adapter_8inc.html#a487c84713caa54ae04350179073b64b0" title="annotationcommand_adapter\l_command_names" alt="" coords="549,1475,739,1522"/><area shape="rect" id="node98" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="1736,1617,1899,1647"/><area shape="rect" id="node107" href="engines_8inc.html#af4e4689479142932fa789c5e314d29e9" title="drush_load_command\l_engine" alt="" coords="569,1138,719,1185"/><area shape="rect" id="node110" href="engines_8inc.html#a316fd3a909b19c6b88ce4ffc521756da" title="drush_get_command_engine\l_config" alt="" coords="788,1237,975,1283"/><area shape="rect" id="node114" href="engines_8inc.html#a8d6f32991f4806b9311373a0c9afcbd5" title="drush_load_engine" alt="" coords="816,981,947,1011"/><area shape="rect" id="node118" href="engines_8inc.html#a1eb2ea4e50529f3c7953f419956ce51a" title="drush_set_engine" alt="" coords="1059,1304,1181,1333"/><area shape="rect" id="node120" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1296,1429,1424,1459"/><area shape="rect" id="node134" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="576,207,712,236"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_icgraph.png" border="0" usemap="#group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_icgraph" alt=""/></div>
<map name="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_icgraph" id="group__dispatching_gad45b0ad6ccdc34ebb10d38d5c2d6a1d1_icgraph">
<area shape="rect" id="node3" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="153,5,319,35"/><area shape="rect" id="node5" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="189,59,283,88"/><area shape="rect" id="node7" href="pm_8drush_8inc.html#a53ddf8818f1813dcb0a833a64c75d318" title="drush_pm_update" alt="" coords="173,112,299,141"/><area shape="rect" id="node9" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="160,165,312,195"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga125471885af052278a0874446b332cf9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_invoke_process </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$site_alias_record</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>$commandline_args</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$commandline_options</em> = <code>array()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$backend_options</em> = <code>TRUE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Invoke a command in a new process, targeting the site specified by the provided site alias record.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramtype">array</td><td class="paramname">$site_alias_record</td><td>The site record to execute the command on. Use '' to run on the current site. </td></tr>
    <tr><td class="paramtype">string</td><td class="paramname">$command_name</td><td>The command to invoke. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$commandline_args</td><td>The arguments to pass to the command. </td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$commandline_options</td><td>The options (e.g. &ndash;select) to provide to the command. </td></tr>
    <tr><td class="paramtype">mixed</td><td class="paramname">$backend_options</td><td>TRUE - integrate errors FALSE - do not integrate errors array - </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7">drush_backend_invoke_concurrent</a> There are also several options that <em>only</em> work when set in this parameter. They include: 'invoke-multiple' If $site_alias_record represents a single site, then 'invoke-multiple' will cause the <em>same</em> command with the <em>same</em> arguments and options to be invoked concurrently (e.g. for running concurrent batch processes). 'concurrency' Limits the number of concurrent processes that will run at the same time. Defaults to '4'. 'override-simulated' Forces the command to run, even in 'simulated' mode. Useful for commands that do not change any state on the machine, e.g. to fetch database information for sql-sync via sql-conf. 'interactive' Overrides the backend invoke process to run commands interactively. 'fork' Overrides the backend invoke process to run non blocking commands in the background. Forks a new process by adding a '&amp;' at the end of the command. The calling process does not receive any output from the child process. The fork option is used to spawn a process that outlives its parent.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>If the command could not be completed successfully, FALSE. If the command was completed, this will return an associative array containing the results of the API call. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="backend_8inc.html#ac295e52c1fa40b91d9100517ed8e76de">drush_backend_get_result()</a></dd></dl>
<p>Do not change the signature of this function! drush_invoke_process is one of the key <a class="el" href="classDrush.html">Drush</a> APIs. See <a href="http://drupal.org/node/1152908">http://drupal.org/node/1152908</a> </p>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00109">109</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="backend_8inc_source.html#l00710">drush_backend_invoke_concurrent()</a>, <a class="el" href="context_8inc_source.html#l00472">drush_get_option_override()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="sitealias_8inc_source.html#l00142">drush_sitealias_resolve_sitespecs()</a>, <a class="el" href="sitealias_8inc_source.html#l00107">drush_sitealias_simplify_names()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p>Referenced by <a class="el" href="archive_8drush_8inc_source.html#l00074">drush_archive_dump()</a>, <a class="el" href="archive_8drush_8inc_source.html#l00317">drush_archive_restore()</a>, <a class="el" href="config_8drush_8inc_source.html#l00736">drush_config_edit()</a>, <a class="el" href="config_8drush_8inc_source.html#l00794">drush_config_pull()</a>, <a class="el" href="config_8drush_8inc_source.html#l00779">drush_config_pull_validate()</a>, <a class="el" href="core_8drush_8inc_source.html#l00888">drush_core_quick_drupal()</a>, <a class="el" href="drush_8inc_source.html#l01167">drush_do_command_redispatch()</a>, <a class="el" href="docs_8drush_8inc_source.html#l00217">drush_docs_errorcodes()</a>, <a class="el" href="pm_8drush_8inc_source.html#l00979">drush_pm_enable_validate()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01355">drush_pm_post_pm_update()</a>, <a class="el" href="pm_8drush_8inc_source.html#l01378">drush_pm_post_pm_updatecode()</a>, <a class="el" href="updatecode_8pm_8inc_source.html#l00019">drush_pm_updatecode()</a>, <a class="el" href="preflight_8inc_source.html#l00774">drush_preflight_command_dispatch()</a>, <a class="el" href="sitealias_8inc_source.html#l00989">drush_sitealias_add_db_settings()</a>, <a class="el" href="sitealias_8inc_source.html#l01107">drush_sitealias_resolve_path_references()</a>, <a class="el" href="ssh_8drush_8inc_source.html#l00035">drush_ssh_site_ssh()</a>, <a class="el" href="sync__enable_8drush_8inc_source.html#l00089">drush_sync_enable_post_sql_sync()</a>, <a class="el" href="user_8drush_8inc_source.html#l00372">drush_user_login()</a>, <a class="el" href="DrushCommand_8php_source.html#l00079">Drush\Psysh\DrushCommand\execute()</a>, <a class="el" href="make_8download_8inc_source.html#l00028">make_download_pm()</a>, and <a class="el" href="backendUnitTest_8php_source.html#l00012">Unish\backendUnitCase\testBackendFork()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga125471885af052278a0874446b332cf9_cgraph.png" border="0" usemap="#group__dispatching_ga125471885af052278a0874446b332cf9_cgraph" alt=""/></div>
<map name="group__dispatching_ga125471885af052278a0874446b332cf9_cgraph" id="group__dispatching_ga125471885af052278a0874446b332cf9_cgraph">
<area shape="rect" id="node3" href="backend_8inc.html#a7852d5448cd4ee3a2082eccd24d690e7" title="drush_backend_invoke\l_concurrent" alt="" coords="209,831,364,878"/><area shape="rect" id="node44" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="999,281,1076,311"/><area shape="rect" id="node57" href="context_8inc.html#a559008f6decb23108b83e704208e415e" title="drush_get_option_override" alt="" coords="696,661,869,691"/><area shape="rect" id="node75" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="764,75,801,104"/><area shape="rect" id="node124" href="sitealias_8inc.html#a0dd349885b59373b8a067d7589d096e7" title="drush_sitealias_resolve\l_sitespecs" alt="" coords="208,1071,365,1118"/><area shape="rect" id="node130" href="sitealias_8inc.html#a0665329c1176b30398fa27ee5cd10423" title="drush_sitealias_simplify\l_names" alt="" coords="207,1141,367,1187"/><area shape="rect" id="node5" href="backend_8inc.html#a895f14d30af875ea1783a3de2355d095" title="_drush_backend_adjust\l_options" alt="" coords="441,701,599,747"/><area shape="rect" id="node7" href="backend_8inc.html#ad19c067bfbd87dfc63c55659723aaf60" title="_drush_backend_argument\l_string" alt="" coords="693,837,872,883"/><area shape="rect" id="node11" href="backend_8inc.html#a20dd75d8a0d75a4e59db35c8918d1d8a" title="_drush_backend_classify\l_options" alt="" coords="436,1063,604,1110"/><area shape="rect" id="node19" href="backend_8inc.html#aa9bff3ffcd61a4dd945b567057a54e5d" title="_drush_backend_generate\l_command" alt="" coords="433,943,607,990"/><area shape="rect" id="node28" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1615,480,1743,509"/><area shape="rect" id="node32" href="group__commandwrappers.html#ga1292121e5bdd4bf19ef4f944b16301ed" title="drush_os" alt="" coords="745,1011,820,1040"/><area shape="rect" id="node35" href="backend_8inc.html#aff4e2427168bc7585fcfa5eca6a94af0" title="_drush_backend_get\l_global_contexts" alt="" coords="449,1133,591,1179"/><area shape="rect" id="node40" href="backend_8inc.html#a1d3f3caae7e1300c53e2cc1fe4ffb932" title="_drush_backend_invoke" alt="" coords="439,429,601,459"/><area shape="rect" id="node84" href="includes_2environment_8inc.html#ac03e907ca57149e27b2e34b186a65797" title="drush_build_drush_command" alt="" coords="943,611,1132,640"/><area shape="rect" id="node97" href="command_8inc.html#aed341ec21a59c794b73f7ba031825632" title="drush_command_get_command\l_specific_options" alt="" coords="417,770,623,817"/><area shape="rect" id="node103" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="716,1295,849,1342"/><area shape="rect" id="node118" href="startup_8inc.html#a80f9d7b288b6ae5fd2c7a8377f7d31b9" title="find_wrapper_or_launcher" alt="" coords="435,840,605,869"/><area shape="rect" id="node9" href="backend_8inc.html#a76fe1964075bf89898a79d07885dcacf" title="_drush_escape_option" alt="" coords="961,845,1113,875"/><area shape="rect" id="node13" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="699,1133,867,1163"/><area shape="rect" id="node17" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="715,1063,851,1110"/><area shape="rect" id="node15" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="956,1117,1119,1163"/><area shape="rect" id="node22" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1211,805,1331,835"/><area shape="rect" id="node30" href="includes_2environment_8inc.html#a395834ff6c51946c9c8a0953aa8f539f" title="drush_is_local_host" alt="" coords="715,907,851,936"/><area shape="rect" id="node24" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1423,752,1551,781"/><area shape="rect" id="node26" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1412,805,1561,835"/><area shape="rect" id="node42" href="backend_8inc.html#aad736c236f213abc274709f79e41edf7" title="_drush_backend_proc_open" alt="" coords="691,403,875,432"/><area shape="rect" id="node54" href="backend_8inc.html#a31be2d52e209d3e6ac359e971cf1fd7b" title="drush_backend_parse\l_output" alt="" coords="708,333,857,379"/><area shape="rect" id="node63" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="995,664,1080,693"/><area shape="rect" id="node66" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="727,179,839,208"/><area shape="rect" id="node71" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="705,507,860,536"/><area shape="rect" id="node46" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1228,283,1313,312"/><area shape="rect" id="node49" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1439,301,1535,331"/><area shape="rect" id="node51" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1409,248,1564,277"/><area shape="rect" id="node59" href="context_8inc.html#add3af7aa09b1ccf49718577a8d7aa61d" title="drush_sitealias_get\l_option" alt="" coords="971,738,1104,785"/><area shape="rect" id="node77" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="971,5,1104,51"/><area shape="rect" id="node82" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="968,75,1107,104"/><area shape="rect" id="node79" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1415,60,1559,89"/><area shape="rect" id="node86" href="includes_2environment_8inc.html#afd2e0babc825c7c524b1fb28cde88532" title="_drush_get_os" alt="" coords="1217,557,1324,587"/><area shape="rect" id="node89" href="context_8inc.html#ae7691e4635dc346aae09eb3f0bbd6092" title="drush_get_context_options" alt="" coords="1181,740,1360,769"/><area shape="rect" id="node95" href="includes_2environment_8inc.html#a87a6fcd104950fb9b0d90e25208bcf79" title="drush_has_bash" alt="" coords="1212,611,1329,640"/><area shape="rect" id="node99" href="command_8inc.html#ada5bfda5bb64c19886f7253e30a58de2" title="drush_command_normalize_name" alt="" coords="673,715,892,744"/><area shape="rect" id="node105" href="sitealias_8inc.html#a448de5768a772d33e44f86cfefe070ac" title="_drush_sitealias_get\l_record" alt="" coords="967,1287,1108,1334"/><area shape="rect" id="node109" href="sitealias_8inc.html#a9e6067d5c022f5ee598fd0da886931a0" title="drush_sitealias_local\l_site_path" alt="" coords="1200,1382,1341,1429"/><area shape="rect" id="node111" href="sitealias_8inc.html#a7da9f5d71a8c274a8a1fc5d3889e9999" title="drush_sitealias_uri\l_to_site_dir" alt="" coords="1421,1425,1552,1471"/><area shape="rect" id="node114" href="sitealias_8inc.html#a3f06e1c033d491e01fe2841c08c0cd2e" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="960,1357,1115,1403"/><area shape="rect" id="node120" href="startup_8inc.html#abc197fb0045673893246a63b3b527f82" title="find_wrapper_or_launcher\l_in_vicinity" alt="" coords="697,767,868,814"/><area shape="rect" id="node127" href="sitealias_8inc.html#a79d866a010f76b7d6ec47ab2a72a0c43" title="drush_sitealias_resolve\l_sitelist" alt="" coords="441,1303,599,1350"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga125471885af052278a0874446b332cf9_icgraph.png" border="0" usemap="#group__dispatching_ga125471885af052278a0874446b332cf9_icgraph" alt=""/></div>
<map name="group__dispatching_ga125471885af052278a0874446b332cf9_icgraph" id="group__dispatching_ga125471885af052278a0874446b332cf9_icgraph">
<area shape="rect" id="node3" href="archive_8drush_8inc.html#aa7d70b7ae4d41f7e3339ee5713b3a38c" title="drush_archive_dump" alt="" coords="684,285,825,315"/><area shape="rect" id="node5" href="archive_8drush_8inc.html#a3d1644997af6a5792dda2213cae3f4cc" title="drush_archive_restore" alt="" coords="236,683,385,712"/><area shape="rect" id="node7" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="249,736,372,765"/><area shape="rect" id="node9" href="config_8drush_8inc.html#a1a6a43bcec612b34f954d1603e5ed27f" title="drush_config_pull" alt="" coords="249,789,372,819"/><area shape="rect" id="node11" href="config_8drush_8inc.html#ab44e91740e7026f2d7f02bd365e8f702" title="drush_config_pull_validate" alt="" coords="224,843,397,872"/><area shape="rect" id="node13" href="core_8drush_8inc.html#a90902b3f529eb012f2ae825cd60f00f1" title="drush_core_quick_drupal" alt="" coords="228,896,393,925"/><area shape="rect" id="node15" href="group__commandprocessing.html#ga359986c5d5f47bee7368a305f412bc9b" title="drush_do_command_redispatch" alt="" coords="208,949,413,979"/><area shape="rect" id="node17" href="preflight_8inc.html#ac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="464,966,635,1013"/><area shape="rect" id="node25" href="docs_8drush_8inc.html#afd2b4818980db269a5807a6148edcc3a" title="drush_docs_errorcodes" alt="" coords="232,1053,389,1083"/><area shape="rect" id="node27" href="pm_8drush_8inc.html#af9a0b321cd245d1e1f3424ae5c9acde9" title="drush_pm_enable_validate" alt="" coords="223,1107,399,1136"/><area shape="rect" id="node29" href="pm_8drush_8inc.html#a8e8de4df92563916a09695cd77887a3e" title="drush_pm_post_pm_update" alt="" coords="220,1160,401,1189"/><area shape="rect" id="node31" href="pm_8drush_8inc.html#a05bb1cb687b1caa097ad691a4c9a3fc1" title="drush_pm_post_pm_updatecode" alt="" coords="205,1213,416,1243"/><area shape="rect" id="node33" href="updatecode_8pm_8inc.html#a7075f7486950df7a67f512a3533fef41" title="drush_pm_updatecode" alt="" coords="235,1267,387,1296"/><area shape="rect" id="node36" href="sitealias_8inc.html#a55b71bb6e4dda1cff7e68ef49331ba6d" title="drush_sitealias_add\l_db_settings" alt="" coords="243,467,379,514"/><area shape="rect" id="node80" href="ssh_8drush_8inc.html#a82a89cae3f9cd4bb76b6e9ac5bddb1cc" title="drush_ssh_site_ssh" alt="" coords="1739,632,1877,661"/><area shape="rect" id="node92" href="sitealias_8inc.html#ac47e3ae7659cedce04c044c53fdb5c37" title="drush_sitealias_resolve\l_path_references" alt="" coords="232,562,389,609"/><area shape="rect" id="node97" href="sync__enable_8drush_8inc.html#a3a368f74d0f207259280533c50b3a5d3" title="drush_sync_enable_post\l_sql_sync" alt="" coords="228,1319,393,1366"/><area shape="rect" id="node99" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="251,1389,371,1419"/><area shape="rect" id="node101" href="classDrush_1_1Psysh_1_1DrushCommand.html#aa5f056c635bf64d020b074949183c637" title="Drush\\Psysh\\DrushCommand\l\\execute" alt="" coords="212,1442,409,1489"/><area shape="rect" id="node103" href="make_8download_8inc.html#a1a9f4bc0852743166afa72edf88008f4" title="make_download_pm" alt="" coords="240,1512,381,1541"/><area shape="rect" id="node105" href="classUnish_1_1backendUnitCase.html#a360517a082c4fda6fbec701ec7242012" title="Unish\\backendUnitCase\l\\testBackendFork" alt="" coords="229,1565,392,1611"/><area shape="rect" id="node19" href="preflight_8inc.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="711,975,799,1004"/><area shape="rect" id="node21" href="startup_8inc.html#a9134f640e62d6ed6350a6feba22bd6aa" title="drush_run_main" alt="" coords="903,975,1017,1004"/><area shape="rect" id="node23" href="startup_8inc.html#a92b9c55a835d9b622cc8828aaa7bbcc2" title="drush_startup" alt="" coords="1117,975,1219,1004"/><area shape="rect" id="node38" href="sitealias_8drush_8inc.html#ac45445a1d55a51a3d3445884284f86fa" title="_drush_sitealias_prepare\l_record" alt="" coords="467,511,632,558"/><area shape="rect" id="node42" href="sitealias_8inc.html#a6bcaf6211d8387c6f154d6592287cf3f" title="drush_sitealias_add\l_db_url" alt="" coords="481,442,617,489"/><area shape="rect" id="node86" href="sitealias_8inc.html#a70da7111e390efcc4dab4f9ba52dbe8b" title="sitealias_get_databases\l_from_record" alt="" coords="468,354,631,401"/><area shape="rect" id="node40" href="sitealias_8drush_8inc.html#a50bb1ab798f857c144715b783c71c480" title="drush_sitealias_print" alt="" coords="1960,461,2101,491"/><area shape="rect" id="node44" href="sitealias_8inc.html#a926d838da4c2c24300e7e7461d8079b0" title="drush_sitealias_alias\l_record_to_spec" alt="" coords="684,458,825,505"/><area shape="rect" id="node46" href="sitealias_8inc.html#a432d1b4f4f62b73ecf29aa29501571a7" title="_drush_sitealias_initialize\l_alias_record" alt="" coords="875,458,1045,505"/><area shape="rect" id="node48" href="sitealias_8inc.html#a33aa8e8ae8df2578bbed0d893e0b8f7a" title="_drush_sitealias_find\l_and_load_all_aliases" alt="" coords="1093,398,1243,445"/><area shape="rect" id="node50" href="sitealias_8inc.html#a1313cf54d1c18ec59bcc91127becc166" title="drush_sitealias_load_all" alt="" coords="1291,272,1451,301"/><area shape="rect" id="node69" href="sitealias_8inc.html#a3f06e1c033d491e01fe2841c08c0cd2e" title="drush_sitealias_lookup\l_alias_by_path" alt="" coords="1293,398,1448,445"/><area shape="rect" id="node52" href="sitealias_8drush_8inc.html#ab84f25812ecd477686e6fa349503ed8d" title="_drush_sitealias_all_list" alt="" coords="1500,224,1660,253"/><area shape="rect" id="node54" href="sitealias_8drush_8inc.html#abcb2a29ddfe9b3f66120793287c143c2" title="_drush_sitealias_user\l_specified_list" alt="" coords="1735,389,1881,435"/><area shape="rect" id="node57" href="archive_8drush_8inc.html#a49945bfa5c147d67734c75e001faeeb8" title="archive_archive_dump\l_complete" alt="" coords="1732,250,1884,297"/><area shape="rect" id="node59" href="config_8drush_8inc.html#a2c3fbeb317e825e8bcb6980feb34d2db" title="config_config_pull\l_complete" alt="" coords="1745,319,1871,366"/><area shape="rect" id="node61" href="core_8drush_8inc.html#a2a2d7804784871fbbc8b14699d17b79c" title="core_core_rsync_complete" alt="" coords="1719,5,1897,35"/><area shape="rect" id="node63" href="complete_8inc.html#af377cea6e3311628f37a738698e1fb4c" title="drush_complete_rebuild" alt="" coords="1729,59,1887,88"/><area shape="rect" id="node65" href="sitealias_8drush_8inc.html#a111c507228e24bf6aa1bc4e368fcadda" title="sitealias_site_alias\l_complete" alt="" coords="1743,111,1873,158"/><area shape="rect" id="node67" href="sitealias_8drush_8inc.html#aa94645cd530207c93d7e11445ceb7651" title="sitealias_site_set\l_complete" alt="" coords="1747,181,1869,227"/><area shape="rect" id="node71" href="sitealias_8inc.html#ac2f57b80441374522c4e4cdc3b7e0c2b" title="drush_sitealias_get\l_record" alt="" coords="1513,458,1647,505"/><area shape="rect" id="node84" href="sitealias_8drush_8inc.html#a617aa7e74fc3c55cb99263a84e414466" title="drush_sitealias_site_set" alt="" coords="1499,405,1661,435"/><area shape="rect" id="node74" href="sitealias_8inc.html#ad847d30de6caee61a30ebc2059f9ad5a" title="drush_sitealias_evaluate_path" alt="" coords="1709,579,1907,608"/><area shape="rect" id="node82" href="sql_8drush_8inc.html#a31ea6e16a805e81fad22960a6325ec51" title="sql_drush_sql_sync\l_sanitize" alt="" coords="1740,458,1876,505"/><area shape="rect" id="node76" href="core_8drush_8inc.html#a9a3c48f1649db4b3c008b11258cdcce5" title="_drush_core_directory" alt="" coords="1956,579,2105,608"/><area shape="rect" id="node78" href="core_8drush_8inc.html#af176c288575033228263e7f9fcf406f4" title="drush_core_drupal_directory" alt="" coords="2156,579,2340,608"/><area shape="rect" id="node89" href="sitealias_8inc.html#ae5887e3bdfbe9c2b05377628067ac9d9" title="drush_sitealias_get\l_db_spec" alt="" coords="688,389,821,435"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ga9b1a98376983ee529fc868ef4280b12d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_redispatch_get_options </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the options that were passed to the current command.</p>
<p>This function returns an array that contains all of the options that are appropriate for forwarding along to drush_invoke_process.</p>
<dl class="section return"><dt>Returns</dt><dd>An associative array of option key =&gt; value pairs. </dd></dl>

<p>Definition at line <a class="el" href="command_8inc_source.html#l00771">771</a> of file <a class="el" href="command_8inc_source.html">command.inc</a>.</p>

<p>References <a class="el" href="command_8inc_source.html#l00721">drush_get_command_options_extended()</a>, <a class="el" href="context_8inc_source.html#l00328">drush_get_context()</a>, <a class="el" href="drush_8inc_source.html#l00271">drush_get_global_options()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="command_8inc_source.html#l01413">drush_parse_command()</a>, and <a class="el" href="sitealias_8inc_source.html#l02116">drush_sitealias_site_selection_keys()</a>.</p>

<p>Referenced by <a class="el" href="annotationcommand__adapter_8inc_source.html#l00180">annotationcommand_adapter_get_options()</a>, <a class="el" href="config_8drush_8inc_source.html#l00736">drush_config_edit()</a>, <a class="el" href="config_8drush_8inc_source.html#l00794">drush_config_pull()</a>, <a class="el" href="drush_8inc_source.html#l01167">drush_do_command_redispatch()</a>, <a class="el" href="preflight_8inc_source.html#l00774">drush_preflight_command_dispatch()</a>, <a class="el" href="user_8drush_8inc_source.html#l00372">drush_user_login()</a>, and <a class="el" href="make_8drush_8inc_source.html#l00865">make_projects()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_cgraph.png" border="0" usemap="#group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_cgraph" alt=""/></div>
<map name="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_cgraph" id="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_cgraph">
<area shape="rect" id="node3" href="group__dispatching.html#ga03019e7753cdfd13f17e7d05e6453486" title="drush_get_command_options\l_extended" alt="" coords="200,323,392,370"/><area shape="rect" id="node23" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="2167,464,2295,493"/><area shape="rect" id="node40" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1177,719,1297,748"/><area shape="rect" id="node100" href="drush_8inc.html#acb0a26e79bcbdd1152d59a6916a35aae" title="drush_get_global_options" alt="" coords="212,216,380,245"/><area shape="rect" id="node104" href="command_8inc.html#aaf301462cb45c0da60e79ea868323858" title="drush_parse_command" alt="" coords="217,745,375,775"/><area shape="rect" id="node118" href="sitealias_8inc.html#a4345c09c2ecb4793246075f06c146fec" title="drush_sitealias_site\l_selection_keys" alt="" coords="228,975,364,1022"/><area shape="rect" id="node5" href="group__dispatching.html#ga0edaf347ba975a7743a81eb3d7a4e38c" title="_drush_get_command\l_options" alt="" coords="453,165,603,211"/><area shape="rect" id="node15" href="command_8inc.html#af0c377881e5c9c772f0cad80ea016452" title="drush_get_commands" alt="" coords="453,357,603,387"/><area shape="rect" id="node65" href="engines_8inc.html#a04ee0e7019029ef27bc4e8f14341b2b4" title="drush_merge_engine_data" alt="" coords="672,305,845,335"/><area shape="rect" id="node7" href="command_8inc.html#a74995cc76034e90a39baee51111b20be" title="drush_command_invoke\l_all_ref" alt="" coords="677,5,840,51"/><area shape="rect" id="node9" href="command_8inc.html#a385cd0ff47c30105f965722a81987809" title="drush_command_implements" alt="" coords="901,99,1093,128"/><area shape="rect" id="node11" href="command_8inc.html#a2ce77284c0002dda3a5d0527e583e017" title="drush_command_hook" alt="" coords="1161,61,1313,91"/><area shape="rect" id="node13" href="command_8inc.html#ad51d79509a4a134947703f3e58564444" title="drush_commandfile_list" alt="" coords="1159,115,1316,144"/><area shape="rect" id="node17" href="annotationcommand__adapter_8inc.html#ab6de77ae3ed2b35a4f8e73dcc404a28c" title="annotationcommand_adapter\l_commands" alt="" coords="664,503,853,550"/><area shape="rect" id="node48" href="command_8inc.html#aa89380abcf2e406ea2d6fe05d529f2b1" title="drush_command_translate" alt="" coords="672,359,845,388"/><area shape="rect" id="node19" href="annotationcommand__adapter_8inc.html#afa56c7af0c6e97d1f4eab6a824679e94" title="annotationcommand_adapter\l_get_commands" alt="" coords="1381,461,1571,507"/><area shape="rect" id="node38" href="context_8inc.html#ade60e65f76863ed34db22f5e7f83a150" title="drush_get_option_list" alt="" coords="925,616,1069,645"/><area shape="rect" id="node21" href="annotationcommand__adapter_8inc.html#af939e17ed499fc288bb7ee5f5bc53c4e" title="annotationcommand_adapter\l_create_commandfile_instance" alt="" coords="1915,511,2117,558"/><area shape="rect" id="node31" href="annotationcommand__adapter_8inc.html#a79d386a5c3df763772ee0c6d82e45b31" title="annotationcommand_adapter\l_get_commands_for_commandhandler" alt="" coords="1620,461,1865,507"/><area shape="rect" id="node25" href="classDrush.html#a1ba34a33c359b25ee1e8047576cd7e1b" title="Drush\\runner" alt="" coords="2183,520,2279,549"/><area shape="rect" id="node27" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="2180,229,2281,259"/><area shape="rect" id="node29" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="2345,229,2479,259"/><area shape="rect" id="node33" href="classDrush.html#a0b97d59df9782f41c76ee151a30cb041" title="Drush\\commandFactory" alt="" coords="1935,256,2097,285"/><area shape="rect" id="node42" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1412,736,1540,765"/><area shape="rect" id="node44" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1401,789,1551,819"/><area shape="rect" id="node50" href="command_8inc.html#a643622feb3301c9b33e295e7f2bd7804" title="_drush_command_translate" alt="" coords="907,357,1088,387"/><area shape="rect" id="node52" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="1219,305,1256,335"/><area shape="rect" id="node54" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="1409,287,1543,334"/><area shape="rect" id="node62" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="1407,357,1545,387"/><area shape="rect" id="node56" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="1671,296,1815,325"/><area shape="rect" id="node58" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1933,203,2099,232"/><area shape="rect" id="node68" href="engines_8inc.html#a50374de188af3d1cb754476607b9c375" title="drush_get_engine_types_info" alt="" coords="1143,168,1332,197"/><area shape="rect" id="node72" href="engines_8inc.html#ae94a82d80d5e90cb126de1f16a7f8fe4" title="drush_get_engines" alt="" coords="932,203,1063,232"/><area shape="rect" id="node94" href="engines_8inc.html#a24f80c817f3ad16e83ada78268b16aef" title="drush_select_engine" alt="" coords="927,512,1068,541"/><area shape="rect" id="node70" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="1385,56,1567,85"/><area shape="rect" id="node77" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="1181,221,1293,251"/><area shape="rect" id="node81" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1939,99,2093,128"/><area shape="rect" id="node84" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="1437,168,1515,197"/><area shape="rect" id="node86" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="1700,160,1785,189"/><area shape="rect" id="node89" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1968,45,2064,75"/><area shape="rect" id="node106" href="command_8inc.html#a6a908a954cb96c0e4dadb715cd72cae4" title="_drush_prepare_command" alt="" coords="441,771,615,800"/><area shape="rect" id="node108" href="context_8inc.html#afaf9361f1297f29d10402b075985985a" title="drush_get_arguments" alt="" coords="1669,788,1816,817"/><area shape="rect" id="node113" href="context_8inc.html#af37b8df12a8fc3bf25b173d420a11203" title="drush_set_command" alt="" coords="457,667,599,696"/><area shape="rect" id="node115" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1679,632,1807,661"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_icgraph.png" border="0" usemap="#group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_icgraph" alt=""/></div>
<map name="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_icgraph" id="group__dispatching_ga9b1a98376983ee529fc868ef4280b12d_icgraph">
<area shape="rect" id="node3" href="annotationcommand__adapter_8inc.html#a3bd0062acd2bd2fdb6b876dbc377dfae" title="annotationcommand_adapter\l_get_options" alt="" coords="209,27,399,74"/><area shape="rect" id="node11" href="config_8drush_8inc.html#ad72fddd99c71a1a854d36dd81e1a80f1" title="drush_config_edit" alt="" coords="243,97,365,127"/><area shape="rect" id="node13" href="config_8drush_8inc.html#a1a6a43bcec612b34f954d1603e5ed27f" title="drush_config_pull" alt="" coords="243,151,365,180"/><area shape="rect" id="node15" href="group__commandprocessing.html#ga359986c5d5f47bee7368a305f412bc9b" title="drush_do_command_redispatch" alt="" coords="201,204,407,233"/><area shape="rect" id="node17" href="preflight_8inc.html#ac5fea44d3fe064240192925f864d57a6" title="drush_preflight_command\l_dispatch" alt="" coords="465,217,636,263"/><area shape="rect" id="node26" href="user_8drush_8inc.html#a9e3e0c6e440b7d0b94180025546176b7" title="drush_user_login" alt="" coords="244,308,364,337"/><area shape="rect" id="node28" href="make_8drush_8inc.html#a7f6c382e030da87fc401f133edd22f3b" title="make_projects" alt="" coords="251,361,357,391"/><area shape="rect" id="node5" href="group__dispatching.html#gac0d79cc522d6f5cecf9f72ecc5ecceb8" title="_drush_invoke_hooks" alt="" coords="477,5,624,35"/><area shape="rect" id="node9" href="annotationcommand__adapter_8inc.html#a1b38f307297433a4b4178e6416a9c328" title="annotationcommand_adapter\l_process_command" alt="" coords="456,58,645,105"/><area shape="rect" id="node7" href="group__dispatching.html#gae7a7f1f4b8c5edffbc2ececc6638698a" title="drush_command" alt="" coords="719,5,836,35"/><area shape="rect" id="node19" href="preflight_8inc.html#a2b642d2bbf815b6d80c315fd66b37381" title="drush_main" alt="" coords="733,225,821,255"/><area shape="rect" id="node21" href="startup_8inc.html#a9134f640e62d6ed6350a6feba22bd6aa" title="drush_run_main" alt="" coords="909,225,1024,255"/><area shape="rect" id="node23" href="startup_8inc.html#a92b9c55a835d9b622cc8828aaa7bbcc2" title="drush_startup" alt="" coords="1072,225,1173,255"/><area shape="rect" id="node30" href="make_8drush_8inc.html#a64e3d2b9948951c3f141802f41658359" title="drush_make" alt="" coords="504,335,597,364"/><area shape="rect" id="node32" href="classDrushMakeProject.html#a14e2e297d82eea0e5bd316255d092da8" title="DrushMakeProject\\recurse" alt="" coords="463,388,639,417"/><area shape="rect" id="node34" href="classDrushMakeProject.html#ad59196db4820ff959dd6088fb8293b75" title="DrushMakeProject\\make" alt="" coords="695,388,860,417"/></map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:29:56 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>