1 2 3 4 5 6 7 8 9 10 11 12 13
use getargs_derive::GetArgs; #[derive(GetArgs)] struct Cli { #[arg(long, action = Append)] first: u8, #[arg(long, action = clap::ArgAction::Count)] second: u8, #[arg(long, action)] third: u8, } fn main() {}