function _drush_preflight_uri

8.0.x preflight.inc _drush_preflight_uri()
7.x preflight.inc _drush_preflight_uri()
master preflight.inc _drush_preflight_uri()

If --uri is provided, set context.

2 calls to _drush_preflight_uri()

File

includes/preflight.inc, line 468
Preflight, postflight and shutdown code.

Code

function _drush_preflight_uri() {
  $uri = drush_get_option('uri', '');
  drush_set_context('DRUSH_SELECTED_URI', $uri);
}