Skip to content

Commit a0b8e4f

Browse files
committed
Always show the invoke option but make it no-op in unsupported versions
1 parent 108abf8 commit a0b8e4f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Maker/MakeCommand.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
6464
->addArgument('name', InputArgument::OPTIONAL, \sprintf('Choose a command name (e.g. <fg=yellow>app:%s</>)', Str::asCommand(Str::getRandomTerm())))
6565
->setHelp($this->getHelpFileContents('MakeCommand.txt'));
6666

67-
if ($this->supportsInvokableCommand()) {
6867
$command->addOption('invokable', 'i', InputOption::VALUE_NEGATABLE, 'Use this option to create an invokable command', default: $this->supportsInvokableCommand());
69-
}
7068
}
7169

7270
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator): void

0 commit comments

Comments
 (0)