Skip to main content

ferris_files/
args.rs

1use clap::Parser;
2#[derive(Parser, Debug)]
3#[command(author, version, about, long_about = None)]
4pub struct Args {
5    /// (optional) Number of largest entries to output
6    #[arg(short = 'n', long = "num_entries", default_value_t = 10)]
7    pub num_entries: usize,
8
9    /// (optional) Number of files to size at one time
10    #[arg(short = 'b', long = "batch_Size", default_value_t = 1000)]
11    pub batch_size: usize,
12
13    /// (optional) defaults to attempting to detect current working directory
14    #[arg(short = 'd', long = "directory")]
15    pub target_dir: Option<String>,
16
17    /// (optional) Path to a file where each line specifies a directory to ignore
18    #[arg(short = 'x', long = "excluded-dirs-file")]
19    pub exclusion_file: Option<String>,
20
21    #[arg(short, long)]
22    pub verbose: bool,
23}