use clap::Parser; #[derive(Debug, Parser)] struct Cli { #[clap(flatten)] permission: clap_permission_flag::Permission, } fn main() -> Result<(), Box> { let args = Cli::parse(); args.permission.drop()?; Ok(()) }