scancode_rust/cli.rs
1use clap::Parser;
2
3#[derive(Parser, Debug)]
4#[command(author, version, about, long_about = None)]
5pub struct Cli {
6 /// Directory path to scan
7 pub dir_path: String,
8
9 /// Output file path
10 #[arg(default_value = "output.json", short)]
11 pub output_file: String,
12
13 /// Maximum recursion depth (0 means no recursion)
14 #[arg(short, long, default_value = "50")]
15 pub max_depth: usize,
16
17 /// Exclude patterns (glob patterns like "*.tmp" or "node_modules")
18 #[arg(short, long, value_delimiter = ',')]
19 pub exclude: Vec<String>,
20}