clap/tests/derive_ui/external_subcommand_misuse.rs

12 lines
155 B
Rust
Raw Normal View History

use clap::Parser;
2020-05-01 16:50:52 +00:00
#[derive(Parser, Debug)]
2020-05-01 16:50:52 +00:00
struct Opt {
#[command(external_subcommand)]
2020-05-01 16:50:52 +00:00
field: String,
}
fn main() {
let _ = Opt::parse();
}