use clap::Subcommand; #[derive(Subcommand)] pub enum HashCommand { Compute { #[arg(short, long)] user: String, #[arg(short, long, default_value = "4")] threads: usize, }, } pub fn handle_hash_command(cmd: HashCommand) -> anyhow::Result<()> { match cmd { HashCommand::Compute { user, threads } => { crate::scan::compute_hashes(&user, threads)?; } } Ok(()) }