use clap::Parser; use klask::Settings; #[derive(Debug, Parser)] struct Opts { #[clap(long)] opt1: Option, #[clap(long)] opt2: Option, } fn main() { klask::run_derived::(Settings::default(), |opt| println!("{:?}", opt)); }