mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
More understandable argument name
This commit is contained in:
parent
011a85d8ae
commit
7e67e11e16
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user