Skip to content

Commit c4246b2

Browse files
blueduskclaude
andcommitted
feat: add examples to CLI help output
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7f3aabc commit c4246b2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/main.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,19 @@ use std::sync::Arc;
2121
use std::time::Instant;
2222

2323
#[derive(Parser)]
24-
#[command(name = "diskcopilot-cli", about = "Fast Mac disk scanner and query tool")]
24+
#[command(
25+
name = "diskcopilot-cli",
26+
about = "Fast Mac disk scanner and query tool",
27+
after_help = "\x1b[1mExamples:\x1b[0m
28+
diskcopilot-cli scan ~ Scan home directory
29+
diskcopilot-cli scan ~ --full Scan all files (no size threshold)
30+
diskcopilot-cli query tree ~ --depth 2 Directory size tree
31+
diskcopilot-cli query large-files ~ --json Largest files as JSON
32+
diskcopilot-cli query dev-artifacts ~ Find node_modules, target, etc.
33+
diskcopilot-cli query sql \"SELECT ...\" ~ Raw SQL query
34+
diskcopilot-cli serve ~ Open cleanup dashboard in browser
35+
diskcopilot-cli delete ~/old-file.zip --trash Move to Trash"
36+
)]
2537
struct Cli {
2638
#[command(subcommand)]
2739
command: Commands,

0 commit comments

Comments
 (0)