#[derive(Collect)]Expand description
Mark a clap struct/enum to be passed as a handler argument.
Note: Types that implement Collect must also be Clone.
ยงExample:
use cling::prelude::*;
#[derive(Collect, Args, Debug, Clone)]
pub struct Options {
/// Turn debugging information on
#[arg(short, long, action = clap::ArgAction::Count)]
pub debug: u8,
}
// Options must derive `Collect`
fn run(options: &Options) {
println!("Debug level is {}", options.debug);
}