public function getOption(
        InputInterface $input,
        $name,
        $configPath = null,
        $default = null,
        $commaSeparated = false
    ) {
        $value = $input->getOption($name);

        // find value in config
        if ($this->valueIsEmpty($value) && $configPath !== null) {
            $value = $this->getConfigValueFromPath($configPath);
        }

        // use default if value is still null
        if ($this->valueIsEmpty($value)) {
            return (is_array($value) && $default === null) ? array() : $default;
        }

        return $commaSeparated
            ? $this->splitCommaSeparatedValues($value)
            : $value;
    }