add cli option to README
This commit is contained in:
parent
7608c2f0c5
commit
1d6b893e37
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user