public function getConsoleOption($name)
    {
        if (isset($this->options[$name])) {
            return $this->options[$name];
        }

        foreach ($this->options as $option) {
            $longName  = $option->getLongName();
            $shortName = $option->getShortName();

            if ($name == $longName || $name == $shortName) {
                return $option;
            }
        }
    }