diff --git a/src/Command/ConfigCommand.php b/src/Command/ConfigCommand.php index 6db5624fb..aebb3a244 100644 --- a/src/Command/ConfigCommand.php +++ b/src/Command/ConfigCommand.php @@ -30,7 +30,7 @@ public function __construct(Deployer $deployer) protected function configure() { parent::configure(); - $this->addOption('format', null, InputOption::VALUE_OPTIONAL, 'The output format (json, yaml)', 'yaml'); + $this->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (json, yaml)', 'yaml'); $this->getDefinition()->getArgument('selector')->setDefault(['all']); } diff --git a/src/Command/InitCommand.php b/src/Command/InitCommand.php index 25643ac2c..d0ee35d18 100644 --- a/src/Command/InitCommand.php +++ b/src/Command/InitCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('init') ->setDescription('Initialize deployer in your project') - ->addOption('path', 'p', InputOption::VALUE_OPTIONAL, 'Recipe path'); + ->addOption('path', 'p', InputOption::VALUE_REQUIRED, 'Recipe path'); } protected function execute(InputInterface $input, OutputInterface $output): int