From 08fe50f79e53fd7068bad94210f05e9db766e592 Mon Sep 17 00:00:00 2001 From: Inhere Date: 2021年9月24日 15:21:13 +0800 Subject: [PATCH 1/2] up: remove unused package from composer --- composer.json | 1 - 1 file changed, 1 deletion(-) diff --git a/composer.json b/composer.json index b3cb2177..b78a50e5 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ "require": { "php": ">7.2.0", "toolkit/cli-utils": "~1.0", - "toolkit/pflag": "~1.0", "toolkit/stdlib": "~1.0", "toolkit/sys-utils": "~1.0" }, From 0200786d4c0ae6487655fe4c073862c436d738ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: 2021年10月12日 16:28:23 +0800 Subject: [PATCH 2/2] Fix missing defaultText --- src/Component/Interact/Choose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Component/Interact/Choose.php b/src/Component/Interact/Choose.php index 978153e1..4fb6edf9 100644 --- a/src/Component/Interact/Choose.php +++ b/src/Component/Interact/Choose.php @@ -55,7 +55,7 @@ public static function one(string $description, $options, $default = null, bool $text .= "\n $key) $value"; } - $defaultText = $default ? "[default:$default]" : ''; + $defaultText = $default !== null ? "[default:$default]" : ''; Console::write($text); beginChoice:

AltStyle によって変換されたページ (->オリジナル) /