You are here

function drush_preflight

During the initialization of Drush, this is the first
step where we load our configuration and commandfiles,
and select the site we are going to operate on; however,
we take no irreversible actions (e.g. site bootstrapping).
This allows commands that are declared with no bootstrap
to select a new site root and bootstrap it.

In this step we will register the shutdown function,
parse the command line arguments and store them in their
related contexts.

Configuration files (drushrc.php) that are
a) Specified on the command line
b) Stored in the root directory of drush.php
c) Stored in the home directory of the system user.

Additionally the DRUSH_QUIET and DRUSH_BACKEND contexts,
will be evaluated now, as they need to be set very early in
the execution flow to be able to take affect.