From 50e3fa3a834a7a5a603d69c372a2c4c190b7104b Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 20 Apr 2026 21:32:02 +0900 Subject: [PATCH] docs: add --output-format to diagnostic verb help text Updated LocalHelpTopic help strings to surface --output-format support: - Status, Sandbox, Doctor, Acp all now show [--output-format ] - Added 'Formats: text (default), json' line to each Diagnostic verbs support JSON output but help text didn't advertise it. Post-#127 fix: help text now matches actual CLI surface. Verified: cargo build passes, claw doctor --help shows output-format. Refs: #127 --- rust/crates/rusty-claude-cli/src/main.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs index b652cf4..822c609 100644 --- a/rust/crates/rusty-claude-cli/src/main.rs +++ b/rust/crates/rusty-claude-cli/src/main.rs @@ -5240,28 +5240,32 @@ fn sandbox_json_value(status: &runtime::SandboxStatus) -> serde_json::Value { fn render_help_topic(topic: LocalHelpTopic) -> String { match topic { LocalHelpTopic::Status => "Status - Usage claw status + Usage claw status [--output-format ] Purpose show the local workspace snapshot without entering the REPL Output model, permissions, git state, config files, and sandbox status + Formats text (default), json Related /status · claw --resume latest /status" .to_string(), LocalHelpTopic::Sandbox => "Sandbox - Usage claw sandbox + Usage claw sandbox [--output-format ] Purpose inspect the resolved sandbox and isolation state for the current directory Output namespace, network, filesystem, and fallback details + Formats text (default), json Related /sandbox · claw status" .to_string(), LocalHelpTopic::Doctor => "Doctor - Usage claw doctor + Usage claw doctor [--output-format ] Purpose diagnose local auth, config, workspace, sandbox, and build metadata Output local-only health report; no provider request or session resume required + Formats text (default), json Related /doctor · claw --resume latest /doctor" .to_string(), LocalHelpTopic::Acp => "ACP / Zed - Usage claw acp [serve] + Usage claw acp [serve] [--output-format ] Aliases claw --acp · claw -acp Purpose explain the current editor-facing ACP/Zed launch contract without starting the runtime Status discoverability only; `serve` is a status alias and does not launch a daemon yet + Formats text (default), json Related ROADMAP #64a (discoverability) · ROADMAP #76 (real ACP support) · claw --help" .to_string(), }