From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/clap/examples/escaped-positional-derive.rs | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100644 vendor/clap/examples/escaped-positional-derive.rs (limited to 'vendor/clap/examples/escaped-positional-derive.rs') diff --git a/vendor/clap/examples/escaped-positional-derive.rs b/vendor/clap/examples/escaped-positional-derive.rs deleted file mode 100644 index 719b3d6..0000000 --- a/vendor/clap/examples/escaped-positional-derive.rs +++ /dev/null @@ -1,25 +0,0 @@ -use clap::Parser; - -#[derive(Parser)] // requires `derive` feature -#[command(author, version, about, long_about = None)] -struct Cli { - #[arg(short = 'f')] - eff: bool, - - #[arg(short = 'p', value_name = "PEAR")] - pea: Option, - - #[arg(last = true)] - slop: Vec, -} - -fn main() { - let args = Cli::parse(); - - // This is what will happen with `myprog -f -p=bob -- sloppy slop slop`... - println!("-f used: {:?}", args.eff); // -f used: true - println!("-p's value: {:?}", args.pea); // -p's value: Some("bob") - println!("'slops' values: {:?}", args.slop); // 'slops' values: Some(["sloppy", "slop", "slop"]) - - // Continued program logic goes here... -} -- cgit v1.2.3