From 631cd5845e8de329d0e227aaa707d7ea228b8f8f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:29 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/clap/examples/cargo-example-derive.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vendor/clap/examples/cargo-example-derive.rs') diff --git a/vendor/clap/examples/cargo-example-derive.rs b/vendor/clap/examples/cargo-example-derive.rs index d9603db89..dfdd799fc 100644 --- a/vendor/clap/examples/cargo-example-derive.rs +++ b/vendor/clap/examples/cargo-example-derive.rs @@ -3,18 +3,18 @@ use clap::Parser; #[derive(Parser)] // requires `derive` feature #[command(name = "cargo")] #[command(bin_name = "cargo")] -enum Cargo { - ExampleDerive(ExampleDerive), +enum CargoCli { + ExampleDerive(ExampleDeriveArgs), } #[derive(clap::Args)] #[command(author, version, about, long_about = None)] -struct ExampleDerive { +struct ExampleDeriveArgs { #[arg(long)] manifest_path: Option, } fn main() { - let Cargo::ExampleDerive(args) = Cargo::parse(); + let CargoCli::ExampleDerive(args) = CargoCli::parse(); println!("{:?}", args.manifest_path); } -- cgit v1.2.3