From dc5bf6dc98d55b7d07e18c8f3a03c7f69652ed21 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 4 Dec 2025 21:20:22 +0800 Subject: [PATCH] Correct install-pkg argument name, add alias --- src/StaticPHP/Command/InstallPackageCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/StaticPHP/Command/InstallPackageCommand.php b/src/StaticPHP/Command/InstallPackageCommand.php index 37cb04b3..754d6ef2 100644 --- a/src/StaticPHP/Command/InstallPackageCommand.php +++ b/src/StaticPHP/Command/InstallPackageCommand.php @@ -8,19 +8,19 @@ use StaticPHP\DI\ApplicationContext; use StaticPHP\Package\PackageInstaller; use Symfony\Component\Console\Attribute\AsCommand; -#[AsCommand('install-pkg')] +#[AsCommand('install-pkg', 'Install additional packages', ['i', 'install-package'])] class InstallPackageCommand extends BaseCommand { public function configure() { - $this->addArgument('package', null, 'The package to install (name or path)'); + $this->addArgument('packages', null, 'The package to install (name or path)'); } public function handle(): int { ApplicationContext::set('elephant', true); $installer = new PackageInstaller([...$this->input->getOptions(), 'dl-prefer-binary' => true]); - $installer->addInstallPackage($this->input->getArgument('package')); + $installer->addInstallPackage($this->input->getArgument('packages')); $installer->run(true, true); return static::SUCCESS; }