From 9bdf1ae62174301dcdcf42f2c9844c6222a1bdce Mon Sep 17 00:00:00 2001 From: Cy Scott Date: Wed, 2 Apr 2025 10:26:15 -0700 Subject: [PATCH] Fix: Properly handle schema option in parseArgs function --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index d661fcd..3417fe9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -59,8 +59,11 @@ function parseArgs(): Config { try { return ConfigSchema.parse({ + name: argv.name, endpoint: argv.endpoint, + allowMutations: argv["enable-mutations"], headers: typeof argv.headers === "string" ? JSON.parse(argv.headers) : {}, + schema: argv.schema }); } catch (error) { if (error instanceof z.ZodError) {