Skip to content

Commit 50e3fa3

Browse files
committed
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 <format>] - Added 'Formats: text (default), json' line to each Diagnostic verbs support JSON output but help text didn't advertise it. Post-ultraworkers#127 fix: help text now matches actual CLI surface. Verified: cargo build passes, claw doctor --help shows output-format. Refs: ultraworkers#127
1 parent a51b210 commit 50e3fa3

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • rust/crates/rusty-claude-cli/src

rust/crates/rusty-claude-cli/src/main.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5240,28 +5240,32 @@ fn sandbox_json_value(status: &runtime::SandboxStatus) -> serde_json::Value {
52405240
fn render_help_topic(topic: LocalHelpTopic) -> String {
52415241
match topic {
52425242
LocalHelpTopic::Status => "Status
5243-
Usage claw status
5243+
Usage claw status [--output-format <format>]
52445244
Purpose show the local workspace snapshot without entering the REPL
52455245
Output model, permissions, git state, config files, and sandbox status
5246+
Formats text (default), json
52465247
Related /status · claw --resume latest /status"
52475248
.to_string(),
52485249
LocalHelpTopic::Sandbox => "Sandbox
5249-
Usage claw sandbox
5250+
Usage claw sandbox [--output-format <format>]
52505251
Purpose inspect the resolved sandbox and isolation state for the current directory
52515252
Output namespace, network, filesystem, and fallback details
5253+
Formats text (default), json
52525254
Related /sandbox · claw status"
52535255
.to_string(),
52545256
LocalHelpTopic::Doctor => "Doctor
5255-
Usage claw doctor
5257+
Usage claw doctor [--output-format <format>]
52565258
Purpose diagnose local auth, config, workspace, sandbox, and build metadata
52575259
Output local-only health report; no provider request or session resume required
5260+
Formats text (default), json
52585261
Related /doctor · claw --resume latest /doctor"
52595262
.to_string(),
52605263
LocalHelpTopic::Acp => "ACP / Zed
5261-
Usage claw acp [serve]
5264+
Usage claw acp [serve] [--output-format <format>]
52625265
Aliases claw --acp · claw -acp
52635266
Purpose explain the current editor-facing ACP/Zed launch contract without starting the runtime
52645267
Status discoverability only; `serve` is a status alias and does not launch a daemon yet
5268+
Formats text (default), json
52655269
Related ROADMAP #64a (discoverability) · ROADMAP #76 (real ACP support) · claw --help"
52665270
.to_string(),
52675271
}

0 commit comments

Comments
 (0)