1 2 3 4 5 6 7 8 9 10 11 12 13
use clap::Args; /// List packages. #[derive(Debug, Args)] pub struct CommandArgs { #[clap(short, long)] all: bool, } pub fn run(args: CommandArgs) { println!("here we will list packages"); dbg!(args); }