From 03774e94049b0ddb84a3cbc300fc38c6a5a51099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Sat, 5 Sep 2026 12:44:16 -0400 Subject: [PATCH] docs: fix 6 typos in CLI help text and documentation --- cmd/namespace.go | 8 ++++---- cmd/openapi2mcp.go | 2 +- cmd/patch.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/namespace.go b/cmd/namespace.go index 1c55303e..aac3f806 100644 --- a/cmd/namespace.go +++ b/cmd/namespace.go @@ -117,11 +117,11 @@ func executeNamespace(cmd *cobra.Command, _ []string) error { var namespaceCmd = &cobra.Command{ Use: "namespace [flags]", - Short: "Namespaces API paths by prefixing it", - Long: `Namespaces API paths by prefixing it. + Short: "Namespaces API paths by prefixing them", + Long: `Namespaces API paths by prefixing them. By prefixing paths with a specific segment, colliding paths to services can be -namespaced to prevent the collisions. Eg. 2 API definitions that both expose a +namespaced to prevent the collisions. E.g. 2 API definitions that both expose a '/list' path. By prefixing one with '/addressbook' and the other with '/cookbook' the resulting paths '/addressbook/list' and '/cookbook/list' can be exposed without colliding. @@ -168,7 +168,7 @@ func init() { string(filebasics.OutputFormatJSON)+" or "+string(filebasics.OutputFormatYaml)) namespaceCmd.Flags().StringArrayP("selector", "", []string{}, "json-pointer identifying routes to update (can be specified more than once)") - namespaceCmd.Flags().StringP("path-prefix", "p", "", "the path based namespace to apply") + namespaceCmd.Flags().StringP("path-prefix", "p", "", "the path-based namespace to apply") namespaceCmd.Flags().BoolP("allow-empty-selectors", "", false, "do not error out if the selectors return empty") namespaceCmd.Flags().StringArrayP("host", "h", []string{}, "hostname to add to the route.hosts property (can be specified more than once)") diff --git a/cmd/openapi2mcp.go b/cmd/openapi2mcp.go index 05359fc9..f17d0bdd 100644 --- a/cmd/openapi2mcp.go +++ b/cmd/openapi2mcp.go @@ -203,7 +203,7 @@ func init() { openapi2mcpCmd.Flags().StringP("format", "", string(filebasics.OutputFormatYaml), "output format: "+ string(filebasics.OutputFormatJSON)+" or "+string(filebasics.OutputFormatYaml)) openapi2mcpCmd.Flags().StringP("uuid-base", "", "", - `the unique base-string for uuid-v5 generation of entity id's (if omitted + `the unique base-string for uuid-v5 generation of entity IDs (if omitted will use the root-level "x-kong-name" directive, or fall back to 'info.title')`) openapi2mcpCmd.Flags().StringSlice("select-tag", nil, `select tags to apply to all entities (if omitted will use the "x-kong-tags" diff --git a/cmd/patch.go b/cmd/patch.go index 67a2a915..09a62114 100644 --- a/cmd/patch.go +++ b/cmd/patch.go @@ -137,7 +137,7 @@ The input file will be read, the patches will be applied, and if successful, wri to the output file. The patches can be specified by a '--selector' and one or more '--value' tags, or via patch-files. -When using '--selector' and '--values', the items will be selected by the 'selector' which is +When using '--selector' and '--value', the items will be selected by the 'selector' which is a JSONpath query. From the array of nodes found, only the objects will be updated. The 'values' will be applied on each of the JSONobjects returned by the 'selector'.