From 2a50015c12e8d32d4b39ec157428d164ed8c9e60 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 24 Mar 2026 12:07:02 +0800 Subject: [PATCH] Add download options for install-pkg command --- src/StaticPHP/Command/InstallPackageCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/StaticPHP/Command/InstallPackageCommand.php b/src/StaticPHP/Command/InstallPackageCommand.php index 864fd379..1185e9f9 100644 --- a/src/StaticPHP/Command/InstallPackageCommand.php +++ b/src/StaticPHP/Command/InstallPackageCommand.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace StaticPHP\Command; +use StaticPHP\Artifact\DownloaderOptions; use StaticPHP\DI\ApplicationContext; use StaticPHP\Package\PackageInstaller; use StaticPHP\Registry\PackageLoader; @@ -29,6 +30,7 @@ class InstallPackageCommand extends BaseCommand return array_filter($packages, fn ($name) => str_starts_with($name, $val)); } ); + $this->getDefinition()->addOptions(DownloaderOptions::getConsoleOptions('dl')); } public function handle(): int