private function getBooleanOption(InputInterface $input, $key, $default)
    {
        $value = trim((string)$input->getOption($key));
        if (strlen($value)) {
            return filter_var($value, FILTER_VALIDATE_BOOLEAN);
        }
        return filter_var($default, FILTER_VALIDATE_BOOLEAN);
    }