public function getOption($key = null, $default = null)
    {
        $name = $this->current ?: 'default';

        $options = isset($this->configs[$name]['options']) ? $this->configs[$name]['options'] : [];
        if ($key === null) {
            return $options;
        }

        return isset($options[$key]) ? $options[$key] : $default;
    }