Skip to content

Commit f6d1a75

Browse files
Fix incorrect argument type in ShowTemplatesCommand.
Replaced InputOption with InputArgument for the 'template' argument, aligning its definition with proper usage. This ensures the command behaves as intended when specifying a template.```
1 parent f9edc0c commit f6d1a75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ShowTemplatesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace HichemTabTech\LaravelFS\Console;
44

55
use Symfony\Component\Console\Command\Command;
6+
use Symfony\Component\Console\Input\InputArgument;
67
use Symfony\Component\Console\Input\InputInterface;
78
use Symfony\Component\Console\Input\InputOption;
89
use Symfony\Component\Console\Output\OutputInterface;
@@ -20,7 +21,7 @@ protected function configure(): void
2021
$this->setName('template:show')
2122
->setDescription('Show all saved templates')
2223
->setHelp('This command shows all saved templates that you can use to create a new Laravel project.')
23-
->addArgument('template', InputOption::VALUE_OPTIONAL, 'Show a specific template')
24+
->addArgument('template', InputArgument::OPTIONAL, 'Show a specific template')
2425
->setAliases(['templates']);
2526
}
2627

0 commit comments

Comments
 (0)