Skip to content

Commit 7977411

Browse files
committed
Fix argument naming in InstallPackageCommand for clarity
1 parent 9ad7147 commit 7977411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/StaticPHP/Command/InstallPackageCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use StaticPHP\Package\PackageInstaller;
99
use Symfony\Component\Console\Attribute\AsCommand;
1010

11-
#[AsCommand('install-pkg', 'Install additional packages', ['i', 'install-package'])]
11+
#[AsCommand('install-pkg', 'Install additional package', ['i', 'install-package'])]
1212
class InstallPackageCommand extends BaseCommand
1313
{
1414
public function configure()
1515
{
16-
$this->addArgument('packages', null, 'The package to install (name or path)');
16+
$this->addArgument('package', null, 'The package to install (name or path)');
1717
}
1818

1919
public function handle(): int
2020
{
2121
ApplicationContext::set('elephant', true);
2222
$installer = new PackageInstaller([...$this->input->getOptions(), 'dl-prefer-binary' => true]);
23-
$installer->addInstallPackage($this->input->getArgument('packages'));
23+
$installer->addInstallPackage($this->input->getArgument('package'));
2424
$installer->run(true, true);
2525
return static::SUCCESS;
2626
}

0 commit comments

Comments
 (0)