use clap::{crate_authors, crate_description, crate_name, crate_version, Parser}; use std::path::PathBuf; #[derive(Debug, Parser)] #[clap(name = crate_name!(), about = crate_description!())] #[clap(author = crate_authors!(), version = crate_version!())] #[clap(arg_required_else_help = true)] pub struct App { /// Task #[clap(required = true)] pub task: Vec, /// Config file #[clap(short = 'f', long = "file", default_value = "voluntary.lua")] pub file: PathBuf, }