]>
git.proxmox.com Git - rustc.git/blob - vendor/clap/examples/cargo-example-derive.rs
1 // Note: this requires the `derive` feature
6 #[clap(name = "cargo")]
7 #[clap(bin_name = "cargo")]
9 ExampleDerive(ExampleDerive
),
13 #[clap(author, version, about, long_about = None)]
14 struct ExampleDerive
{
15 #[clap(long, value_parser)]
16 manifest_path
: Option
<std
::path
::PathBuf
>,
20 let Cargo
::ExampleDerive(args
) = Cargo
::parse();
21 println
!("{:?}", args
.manifest_path
);