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" }, 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 によって変換されたページ (->オリジナル) /