1 2 3 4 5 6 7 8 9 10 11 12
use clap::Args; #[derive(Debug, Args)] pub struct CommandArgs { #[clap(short, long)] path: String, } pub fn run(args: CommandArgs) { println!("here we will pack a directory into a package"); dbg!(args); }