Skip to content

Commit a51b210

Browse files
committed
docs: add JSON output example for diagnostic verbs post-#127
USAGE.md now documents: - for machine-readable diagnostics - Note about parse-time rejection of invalid suffix args (post-#127 fix) Verifies that diagnostic verbs support JSON output for scripting, and documents the behavior change from #127 (invalid args rejected at parse time instead of falling through to prompt dispatch). Refs: #127
1 parent a3270db commit a51b210

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

USAGE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ cd rust
4343
/doctor
4444
```
4545

46+
Or run doctor directly with JSON output for scripting:
47+
48+
```bash
49+
cd rust
50+
./target/debug/claw doctor --output-format json
51+
```
52+
53+
**Note:** Diagnostic verbs (`doctor`, `status`, `sandbox`, `version`) support `--output-format json` for machine-readable output. Invalid suffix arguments (e.g., `--json`) are now rejected at parse time rather than falling through to prompt dispatch.
54+
4655
### Interactive REPL
4756

4857
```bash

0 commit comments

Comments
 (0)