Add download options for build:libs command

This commit is contained in:
crazywhalecc 2026-02-03 20:23:32 +08:00
parent 274098b3a6
commit 0d4cde79fa
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace StaticPHP\Command;
use StaticPHP\Artifact\DownloaderOptions;
use StaticPHP\Package\PackageInstaller;
use StaticPHP\Util\V2CompatLayer;
use Symfony\Component\Console\Attribute\AsCommand;
@ -23,6 +24,8 @@ class BuildLibsCommand extends BaseCommand
new InputOption('no-download', null, null, 'Skip downloading artifacts (use existing cached files)'),
...V2CompatLayer::getLegacyBuildOptions(),
]);
// Downloader options (with 'dl-' prefix to avoid conflicts)
$this->getDefinition()->addOptions(DownloaderOptions::getConsoleOptions('dl'));
}
public function handle(): int