mirror of
https://github.com/sreedevk/deduplicator.git
synced 2026-09-14 01:26:33 +00:00
initial commit
This commit is contained in:
16
src/cli.rs
Normal file
16
src/cli.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use std::path::PathBuf;
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(author, version, about, long_about = None)]
|
||||
pub struct App {
|
||||
/// Filetypes to deduplicate (default = all)
|
||||
#[arg(short, long)]
|
||||
pub filetypes: Option<String>,
|
||||
/// List duplcates without deleting (default = true)
|
||||
#[arg(short, long)]
|
||||
pub dry: bool,
|
||||
/// Run Deduplicator on dir different from pwd
|
||||
#[arg(long)]
|
||||
pub dir: Option<PathBuf>
|
||||
}
|
||||
Reference in New Issue
Block a user