Skip to content

Commit d137b5a

Browse files
committed
Make script argument required via cli
1 parent d4a01b4 commit d137b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WatcherCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function configure(): void
2121
{
2222
$this->setName('watch')
2323
->setDescription('Restart PHP application once the source code changes.')
24-
->addArgument('script', InputArgument::OPTIONAL, 'PHP script to run')
24+
->addArgument('script', InputArgument::REQUIRED, 'Script to run')
2525
->addOption('watch', '-w', InputOption::VALUE_IS_ARRAY + InputOption::VALUE_OPTIONAL, 'Paths to watch')
2626
->addOption('ext', '-e', InputOption::VALUE_OPTIONAL, 'Extensions to watch', '')
2727
->addOption('ignore', '-i', InputOption::VALUE_IS_ARRAY + InputOption::VALUE_OPTIONAL, 'Paths to ignore', [])

0 commit comments

Comments
 (0)