From 1d6b893e377266d420db327db724f8c351a5c6f1 Mon Sep 17 00:00:00 2001 From: Jack Thomson Date: Fri, 8 Aug 2025 15:06:41 +0100 Subject: [PATCH] add cli option to README --- README.md | 1 + src/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbbaff2..9494d86 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/index.ts b/src/index.ts index 65ad715..27328dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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