Skip to content

Commit 1a05778

Browse files
fix: add missing CLI arguments to prevent panic on valid options
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c87ae51 commit 1a05778

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/main.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,42 @@ struct Args {
1717
/// Show git hotspots
1818
#[arg(long)]
1919
hotspot: bool,
20+
21+
/// Generate a markdown project summary
22+
#[arg(long)]
23+
summary: bool,
24+
25+
/// Show detailed statistics for each file
26+
#[arg(long)]
27+
details: bool,
28+
29+
/// Export result as HTML table
30+
#[arg(long)]
31+
html: bool,
32+
33+
/// Export result as Markdown table
34+
#[arg(long)]
35+
md: bool,
36+
37+
/// Show only files with issues
38+
#[arg(long)]
39+
failures_only: bool,
40+
41+
/// Use cache for faster analysis
42+
#[arg(long)]
43+
cache: bool,
44+
45+
/// Compare two directories
46+
#[arg(long, num_args = 2)]
47+
compare: Option<Vec<String>>,
48+
49+
/// Output file path
50+
#[arg(short, long)]
51+
output: Option<String>,
52+
53+
/// Allow other commands to not panic
54+
#[arg(short = 'x', long)]
55+
exclude: Option<Vec<String>>,
2056
}
2157

2258
fn main() -> Result<()> {

0 commit comments

Comments
 (0)