public static function confirm($question, $allowShort, $defaultValue = false)
    {
        $value = $defaultValue ? 'yes' : 'no';
        $value = self::ask($question . ' (yes/no)', $value);
        return $value == 'yes' || ($value == 'y' && $allowShort);
    }