add cli option to README

This commit is contained in:
Jack Thomson 2025-08-08 15:06:41 +01:00
parent 7608c2f0c5
commit 1d6b893e37
No known key found for this signature in database
GPG Key ID: 58D01BD3612EFF1C
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir -
| `--transport` | `-t` | Transport mode: `"stdio"` (default), `"web"`, or `"streamable-http"` | `"stdio"` |
| `--port` | `-p` | Port for web-based transports | `3000` |
| `--force` | | Overwrite existing files in the output directory without confirmation | `false` |
| `--simplifyTypes` | `-st` | Flatten single-element type arrays in the JSON schema to their single value | `false` |
## 📦 Programmatic API

View File

@ -74,7 +74,7 @@ program
)
.option('--force', 'Overwrite existing files without prompting')
.option(
'--simplifyTypes',
'-st, --simplifyTypes',
'Flatten single-element type arrays in the JSON schema to their single value'
)
.version(pkg.version) // Match package.json version