Skip to content

Commit 30742fc

Browse files
authored
Fix command options mode (InputOption::VALUE_REQUIRED) (#4091)
1 parent 946bf07 commit 30742fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Command/ConfigCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(Deployer $deployer)
3030
protected function configure()
3131
{
3232
parent::configure();
33-
$this->addOption('format', null, InputOption::VALUE_OPTIONAL, 'The output format (json, yaml)', 'yaml');
33+
$this->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (json, yaml)', 'yaml');
3434
$this->getDefinition()->getArgument('selector')->setDefault(['all']);
3535
}
3636

src/Command/InitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function configure()
2828
$this
2929
->setName('init')
3030
->setDescription('Initialize deployer in your project')
31-
->addOption('path', 'p', InputOption::VALUE_OPTIONAL, 'Recipe path');
31+
->addOption('path', 'p', InputOption::VALUE_REQUIRED, 'Recipe path');
3232
}
3333

3434
protected function execute(InputInterface $input, OutputInterface $output): int

0 commit comments

Comments
 (0)