1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use std::path::PathBuf; use clap::{Parser, ValueEnum}; #[derive(Clone, ValueEnum)] pub enum Mode { List, Search, Count, Read, Raw, Folders, Move, Remove, } #[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, }