Add the get-color option and associated parameters to the command line.

@param string      $name    The name of the color to retrieve.

@param null|string $default The default value to return.

@return ConfigCommandBuilder
326356
public function getColor($name, $default = null)
    {
        $this->arguments[] = '--get-color';
        $this->arguments[] = $name;
        if ($default !== null) {
            $this->arguments[] = $default;
        }
        return $this;
    }
499659
public function addInputColor(string $name) : Element\Input\Color
    {
        $input = new Element\Input\Color($this, $name);
        $this->addComponent($name, $input);

        return $input;
    }
950080
public static function get($name = '@', $default = false)
	{
		$names = parseCfgName($name);
		if (isset($names[0]))
		{
			$first = array_shift($names);
			$obj = self::getInstance($first);
			if ($obj)
			{
				return $obj->get($names, $default);
			}
			else
			{
				return $default;
			}
		}
		else
		{
			return $default;
		}
	}
1344477
public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
765145
public function get($name = null, $default = null)
    {
        if(null === $name)
        {
            return $this->get;
        }
        else
        {
            return $this->get[$name] ?? $default;
        }
    }
686876
public function find($name, $default = null)
    {
        foreach ($this->fetchAll() as $option) {
            if ($option->key == $name) {
                return $option->value;
            }
        }

        return $default;
    }
627289
public static function get(string $name, $default = null)
    {
        $names = Imi::parseDotRule($name);
        if (isset($names[0]))
        {
            $first = array_shift($names);
            if('@currentServer' === $first)
            {
                if($isCurrentServer = (RequestContext::exsits() && null !== ($server = RequestContext::getServer())))
                {
                    $first = '@server';
                    array_unshift($names, $server->getName());
                }
                else
                {
                    $first = '@app';
                }
            }
            else
            {
                $isCurrentServer = false;
            }
            if(isset(static::$configs[$first]))
            {
                $result = static::$configs[$first]->get($names, null);
            }
            if(isset($result))
            {
                return $result;
            }
            else if($isCurrentServer)
            {
                $first = '@app';
                array_shift($names);
                return static::$configs[$first]->get($names, $default);
            }
        }
        return $default;
    }
89917
public function getOption($name = null, $default = null)
    {
        if ($name === null) {
            return $this->_options;
        }

        if (strpos($name, '-') !== false) {
            throw new ArgumentsException(['please remove `-` characters for `:argument` argument', 'argument' => $name]);
        }

        foreach (preg_split('#[|,:]+#', $name) as $o) {
            if (isset($this->_options[$o])) {
                return $this->_options[$o];
            } elseif (strpos($o, '_') !== false) {
                $o = strtr($o, '_', '-');
                if (isset($this->_options[$o])) {
                    return $this->_options[$o];
                }
            }
        }

        if ($default === null) {
            $options = [];
            foreach (preg_split('#[|,:]+#', $name) as $opt) {
                $options[] = (strlen($opt) === 1 ? '-' : '--') . $opt;
            }

            throw new ArgumentsException('missing required options `' . implode('` or `', $options) . '` option');
        }

        return $default;
    }
33375
public function getConfig($name, $default = null)
    {
        $value = $this->config->get($name);

        return $value === null ? $default : $value;
    }
795354
protected static function getOption($name, $default = null)
    {
        return isset(self::$options[$name]) ? self::$options[$name] : $default;
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
486638
public function customfield($name = null, $default = null)
    {
        $customfields = $this->getAssignedCustomfields();
        foreach ($customfields as $customfield) {
            if ($customfield->getName() === $name) {
                $value = $customfield->setModel($this)->getValue();
                return is_null($value) ? $default : $value;
            }
        }
        return $default;
    }
199202
public static function get($name, $default = '') {
        $_GET = self::paramFilter($_GET);
        if (isset($_GET[$name])) {
            if (empty($_GET[$name])) {
                return $default;
            }
            return $_GET[$name];
        }
        return false;
    }
783742
protected function getOption($name, $default = '') {
        if ($this->config && array_key_exists($name, $this->config)) {
            return $this->config[ $name ];
        }

        return $default;
    }
660028
protected function _getOption( $name, $default = null )
	{
		return ( isset( $this->_options[$name] ) ? $this->_options[$name] : $default );
	}
65455
public function getOption(string $name, $default = null)
    {
        $value = array_key_exists($name, $this->options) ? $this->options[$name] : $default;

        if ($value && ($value instanceof \Closure)) {
            $value = $value();
        }

        return $value;
    }
325197
public function getParam($name, $default = null)
    {
        $value = array_get($this->params, $name);
        if ($value === null) {
            if ($default === null) {
                throw new InvalidValueException(['`:param` param is not exists in $configure->params', 'param' => $name]);
            } else {
                return $default;
            }
        } else {
            return $value;
        }
    }