Determine if we're to force installation from package sources when
possible, including VCS information.

@param string $option

@return array
330928
protected function getPreferedTarget($option)
    {
        $prefer = [
            'source' => false,
            'dist'   => false,
        ];

        switch ($option) {
            case 'source':
                $prefer['source'] = true;
                break;
            case 'dist':
                $prefer['dist'] = true;
                break;
            case 'auto':
            default:
                break;
        }

        return $prefer;
    }
544559
public function getInfo($option = 0)
    {
        if (0 === $option) {
            return curl_getinfo($this->curl);
        }

        return curl_getinfo($this->curl, $option);
    }
1238795
private function setProperties($option)
    {
        $priority = isset($option[2]) ? $option[2] : 0;
        $this->driverClass = isset($option[1]) ? $option[1] : null;
        $this->file = isset($option[0]) ? $this->composeFileName($option[0]) : null;
        return $priority;
    }
958697
public function setNeeds($option)
    {
        if (!is_array($option)) {
            $option = array($option);
        }
        foreach ($option as $opt) {
            $this->needs[] = $opt;
        }
        return $this;
    }
1287184
public function setOption($option = [])
    {
        $op = $option[$this->channel];
        $op['sandbox'] = isset($option['sandbox']) ? $option['sandbox'] : 0;
        $this->provider->setOption($op);
    }
1222535
public static function enable($option) {

		if(false === is_int($option)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type integer, "%s" given', __METHOD__, gettype($option)), E_USER_ERROR);
		}
		
		static :: $options[$option] = true;
	}
841240
public function vm($options = ['no-boot' => FALSE]) {
    if (!$this->getInspector()->isDrupalVmConfigPresent()) {
      $confirm = $this->confirm("Drupal VM is not currently installed. Install it now? ", TRUE);
      if ($confirm) {
        $this->install();
      }
      else {
        return FALSE;
      }
    }

    // @todo Check that VM is properly configured, e.g., all config files exist
    // and geerlingguy/drupalvm is in composer.lock.
    if (!$this->getInspector()->isDrupalVmLocallyInitialized()) {
      $this->localInitialize();
    }
    else {
      $this->say("Drupal VM is already configured. In the future, please use vagrant commands to interact directly with the VM.");
    }

    if (!$options['no-boot'] && !$this->getInspector()->isDrupalVmBooted()) {
      return $this->boot();
    }
  }
1043102
public function pull($options = "-u") {
        try {
            $output = $this->cmd(sprintf('pull %s %s', $options, $this->options['repository']));
            
            if(strpos($output['output'], "use 'hg resolve'") !== false){
                $output['error'] = true;  
            }               
            
            return $output;
        } catch (Exception $ex) {
            $output['error'] = $ex;
            
            return $output;
        }
    }
631760
public static function ensureValid($option)
    {
        if (is_string($option)) {
            $option = strtolower($option);
        }

        if (!self::isValid($option)) {
            $option = is_scalar($option) ? $option : gettype($option);

            $parts = explode('\\', __CLASS__);
            $class = array_pop($parts);

            throw new EnumException(sprintf('"%s" is not a valid %s option.', $option, $class));
        }

        return $option;
    }
591511
public static function fromOption($option)
    {
        $message = sprintf(
            'Could not add invalid Option of type "%1$s" to option repository.',
            is_object($option)
                ? get_class($option)
                : gettype($option)
        );

        return new static($message);
    }
727852
function _Options($opts)
	{
		if (!is_array($opts)) return array();
		$newopts = array();
		foreach($opts as $k => $v) {
			if (is_numeric($k)) $newopts[strtoupper($v)] = $v;
			else $newopts[strtoupper($k)] = $v;
		}
		return $newopts;
	}
1053362
protected function getPackageOptionFile($option)
    {
        $option = $this->getPackageOption($option);

        if ($option && file_exists($this->getPackageDir().$option)) {
            return $option;
        }

        return '';
    }
946809
public function getOption($option, $default = null)
    {
        if (array_key_exists($option, $this->options)) {
            return $this->options[$option];
        }
        return $default;
    }
1102413
final protected function getOptions($option = null)
    {
        if (null !== $option) {
            if (array_key_exists($option, self::$_options)) {
                return self::$_options[$option];
            } else {
                return false;
            }
        }

        return self::$_options;
    }
1295193
public function Get($option)
    {
        if(isset($this->preferences[$option]))
        {
            return $this->preferences[$option];
        }

        return false;
    }
156296
public function getConfiguration($option = null)
    {
        if (!is_null($option)) {
            return $this->options[$option];
        }

        return $this->options;
    }
432841
private static function _AdjustOptions ($options) {
		return [
			'cipher'				=> isset($options['cipher']) ? $options['cipher'] : \MCRYPT_BLOWFISH,
			'module'				=> isset($options['module']) ? $options['module'] : \MCRYPT_MODE_ECB,
			'algorithm_directory'	=> isset($options['algorithm_directory']) ? $options['algorithm_directory'] : '',
			'mode_directory'		=> isset($options['mode_directory']) ? $options['mode_directory'] : '',
			'random_source'			=> isset($options['random_source']) ? $options['random_source'] : \MCRYPT_DEV_URANDOM,
		];
	}