use std::path::PathBuf; use clap::{Parser, ValueEnum}; #[derive(Clone, ValueEnum)] pub enum Mode { List, Search, Count, Read, Raw, Folders, Move, Remove, AddFolder, } #[derive(Parser)] #[command(author, version, about, long_about = None)] pub struct Arguments { pub maildir_path: PathBuf, pub sys_user: String, pub mail_user: String, pub mode: Mode, }