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 <noreply@anthropic.com>
This commit is contained in:
Adi 2026-02-19 22:30:56 +00:00 committed by Gustavo Madeira Santana
parent ae4907ce6e
commit e2ff28a500
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ export function registerConfigCli(program: Command) {
.description("Set a config value by dot path")
.argument("<path>", "Config path (dot or bracket notation)")
.argument("<value>", "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);