protected function setGlobalOptions() {
    if (isset($this->uri) && !empty($this->uri)) {
      $this->option('uri', $this->uri);
    }

    if (!$this->interactive) {
      $this->option('no-interaction');
    }

    if ($this->verbose !== FALSE) {
      $verbosity_threshold = $this->verbosityThreshold();
      switch ($verbosity_threshold) {
        case OutputInterface::VERBOSITY_VERBOSE:
          $this->verbose(TRUE);
          break;

        case OutputInterface::VERBOSITY_VERY_VERBOSE:
          $this->veryVerbose(TRUE);
          break;

        case OutputInterface::VERBOSITY_DEBUG:
          $this->debug(TRUE);
          break;
      }
    }
    if ($this->verbosityThreshold() >= OutputInterface::VERBOSITY_VERBOSE
      && $this->verbose !== FALSE) {
      $this->verbose(TRUE);
    }

    if (($this->debug || $this->getConfig()->get('drush.debug'))
      && $this->getConfig()->get('drush.debug') !== FALSE) {
      $this->option('-vvv');
    }
    elseif (($this->veryVerbose || $this->getConfig()->get('drush.veryVerbose'))
      && $this->getConfig()->get('drush.veryVerbose') !== FALSE) {
      $this->option('-vv');
    }
    elseif (($this->verbose || $this->getConfig()->get('drush.verbose'))
      && $this->getConfig()->get('drush.verbose') !== FALSE) {
      $this->option('-v');
    }

    if ($this->include) {
      $this->option('include', $this->include);
    }

    if ($this->ansi) {
      $this->option("ansi");
    }
  }