diff --git a/src/cli/webModuleCommands.ts b/src/cli/webModuleCommands.ts index b14f23da5..f1e55c751 100644 --- a/src/cli/webModuleCommands.ts +++ b/src/cli/webModuleCommands.ts @@ -31,14 +31,15 @@ export const registerWebModuleCommands = ( }), options: z.object({ importerUrl: webModuleTraceInputSchema.shape.importer_url, + // Describe the optional wrapper: help reads the outer schema's metadata. importMapPath: importMapInputSchema.shape.path + .optional() .describe( "Absolute local import-map JSON path; requires --import-map-base-url", - ) - .optional(), + ), importMapBaseUrl: importMapInputSchema.shape.base_url - .describe("HTTP(S) import-map base URL; requires --import-map-path") - .optional(), + .optional() + .describe("HTTP(S) import-map base URL; requires --import-map-path"), }), run: ({ args, options }) => withCommandCancellation(async (signal) => {