fix(repo-tools): Invalid --help for backstage-repo-tools package schema openapi generate (#32305)

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
Gabriel Dugny
2026-01-13 18:12:04 +01:00
committed by GitHub
parent 6dd72ca48d
commit 498f9ddca5
3 changed files with 21 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Fixed help text for `backstage-repo-tools package schema openapi generate` command.
+4
View File
@@ -160,7 +160,11 @@ Options:
Usage: backstage-repo-tools package schema openapi generate [options]
Options:
--client-additional-properties [properties]
--client-package [package]
--server
--server-additional-properties [properties]
--watch
-h, --help
```
+12 -10
View File
@@ -44,24 +44,26 @@ function registerPackageCommand(program: Command) {
openApiCommand
.command('generate')
.description(
'Command to generate a client and/or a server stub from an OpenAPI spec.',
)
.option(
'--client-package [package]',
'Top-level path to where the client should be generated, ie packages/catalog-client.',
)
.option('--server')
.description(
'Command to generate a client and/or a server stub from an OpenAPI spec.',
)
.option('--client-additional-properties [properties]')
.description(
.option('--server', 'Generate server stub')
.option(
'--client-additional-properties [properties]',
'Additional properties that can be passed to @openapitools/openapi-generator-cli',
)
.option('--server-additional-properties [properties]')
.description(
.option(
'--server-additional-properties [properties]',
'Additional properties that can be passed to @openapitools/openapi-generator-cli',
)
.option('--watch')
.description('Watch the OpenAPI spec for changes and regenerate on save.')
.option(
'--watch',
'Watch the OpenAPI spec for changes and regenerate on save.',
)
.action(lazy(() => import('./package/schema/openapi/generate'), 'command'));
openApiCommand