From e2ff28a500f1997ca718288780787b7be01e4bf5 Mon Sep 17 00:00:00 2001 From: Adi Date: Thu, 19 Feb 2026 22:30:56 +0000 Subject: [PATCH] fix(config-cli): correct misleading --json flag description for config set The description said "Parse value as JSON5 (required)" which incorrectly implied the flag was mandatory. JSON5 is always attempted; --json only controls whether parse failure throws an error or falls back to raw string. Co-Authored-By: Claude Opus 4.6 --- src/cli/config-cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/config-cli.ts b/src/cli/config-cli.ts index c35caf5f007..5d128b6a177 100644 --- a/src/cli/config-cli.ts +++ b/src/cli/config-cli.ts @@ -313,7 +313,7 @@ export function registerConfigCli(program: Command) { .description("Set a config value by dot path") .argument("", "Config path (dot or bracket notation)") .argument("", "Value (JSON5 or raw string)") - .option("--json", "Parse value as JSON5 (required)", false) + .option("--json", "Strict JSON5 parsing (error instead of raw string fallback)", false) .action(async (path: string, value: string, opts) => { try { const parsedPath = parsePath(path);