dedup_it/
lib.rs

1use std::path::PathBuf;
2
3use clap::Parser;
4
5/// CLI program to dedupe lines in a file or input stream.
6#[derive(Parser, Debug)]
7#[clap(author, about, version, long_about = None)]
8pub struct Cli {
9    /// Input file name
10    #[clap(value_parser, value_name = "INPUT FILE")]
11    pub input: Option<PathBuf>,
12
13    /// Output file name
14    #[clap(value_parser, value_name = "OUTPUT FILE")]
15    pub output: Option<PathBuf>,
16
17    /// Memory limit in bytes, 0 for unlimited
18    #[clap(short, long, action = clap::ArgAction::Set, default_value_t = 0)]
19    pub memo_limit: usize,
20
21    /// Whether to print verbose output
22    #[clap(flatten)]
23    pub verbose: clap_verbosity_flag::Verbosity,
24}
25
26pub mod cache;