Skip to content

Commit 221e5d9

Browse files
authored
fix(openapi): command options mode (InputOption::VALUE_REQUIRED) (#7266)
1 parent f46c0a3 commit 221e5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenApi/Command/OpenApiCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ protected function configure(): void
4343
$this
4444
->setDescription('Dump the Open API documentation')
4545
->addOption('yaml', 'y', InputOption::VALUE_NONE, 'Dump the documentation in YAML')
46-
->addOption('output', 'o', InputOption::VALUE_OPTIONAL, 'Write output to file')
47-
->addOption('spec-version', null, InputOption::VALUE_OPTIONAL, 'Open API version to use (2 or 3) (2 is deprecated)', '3')
46+
->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Write output to file')
47+
->addOption('spec-version', null, InputOption::VALUE_REQUIRED, 'Open API version to use (2 or 3) (2 is deprecated)', '3')
4848
->addOption('api-gateway', null, InputOption::VALUE_NONE, 'Enable the Amazon API Gateway compatibility mode')
4949
->addOption('filter-tags', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Filter only matching x-apiplatform-tag operations', null);
5050
}

0 commit comments

Comments
 (0)