clap/clap_derive/tests/ui/flatten_struct_in_enum.rs

11 lines
131 B
Rust
Raw Normal View History

#[derive(clap::Parser)]
enum Opt {
#[clap(flatten)]
Sub(SubCmd),
}
#[derive(clap::Parser)]
struct SubCmd {}
fn main() {}