From 7e67e11e16ca64c33bb60dfc940809bb1afb8ae9 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 10 Nov 2024 20:25:42 +0100 Subject: [PATCH] More understandable argument name --- system/src/Commands/PluginInstallCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Commands/PluginInstallCommand.php b/system/src/Commands/PluginInstallCommand.php index f40961e7..6330e08a 100644 --- a/system/src/Commands/PluginInstallCommand.php +++ b/system/src/Commands/PluginInstallCommand.php @@ -14,14 +14,14 @@ class PluginInstallCommand extends Command { $this->setName('plugin:install') ->setDescription('This command installs plugin') - ->addArgument('plugin', InputArgument::REQUIRED, 'Path to zip file (plugin) that you want to install'); + ->addArgument('pathToPluginZip', InputArgument::REQUIRED, 'Path to zip file (plugin) that you want to install'); } protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); - $pathToFile = $input->getArgument('plugin'); + $pathToFile = $input->getArgument('pathToPluginZip'); $ext = strtolower(pathinfo($pathToFile, PATHINFO_EXTENSION)); if($ext !== 'zip') {// check if it is zipped/compressed file