diff --git a/src/StaticPHP/Command/InstallPackageCommand.php b/src/StaticPHP/Command/InstallPackageCommand.php index 754d6ef29..89814f013 100644 --- a/src/StaticPHP/Command/InstallPackageCommand.php +++ b/src/StaticPHP/Command/InstallPackageCommand.php @@ -8,19 +8,19 @@ use StaticPHP\Package\PackageInstaller; use Symfony\Component\Console\Attribute\AsCommand; -#[AsCommand('install-pkg', 'Install additional packages', ['i', 'install-package'])] +#[AsCommand('install-pkg', 'Install additional package', ['i', 'install-package'])] class InstallPackageCommand extends BaseCommand { public function configure() { - $this->addArgument('packages', null, 'The package to install (name or path)'); + $this->addArgument('package', 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('packages')); + $installer->addInstallPackage($this->input->getArgument('package')); $installer->run(true, true); return static::SUCCESS; }