mirror of https://github.com/openclaw/openclaw.git
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:
parent
ae4907ce6e
commit
e2ff28a500
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue