2022-08-08 19:32:21 +00:00
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Parser)]
|
2022-09-02 20:37:23 +00:00
|
|
|
#[command(author, version, about, long_about = None)]
|
2022-08-08 19:32:21 +00:00
|
|
|
struct Cli {
|
|
|
|
name: Vec<String>,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let cli = Cli::parse();
|
|
|
|
|
|
|
|
println!("name: {:?}", cli.name);
|
|
|
|
}
|