1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::domain::Direction; use clap::Parser; #[derive(Parser)] #[command(version, about, long_about = None)] pub struct Args { #[arg(default_value = "next")] /// Direction to switch workspace ('next' or 'previous') pub direction: Direction, } impl Args { pub fn parse_args() -> Self { Args::parse() } }