mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 15:22:30 +00:00
fully qualify StructOpt when flattening (#112)
This commit is contained in:
parent
01d34fb8d2
commit
100d88fb8a
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ fn gen_constructor(fields: &Punctuated<Field, Comma>) -> TokenStream {
|
|||
};
|
||||
quote!(#field_name: <#subcmd_type>::from_subcommand(matches.subcommand())#unwrapper)
|
||||
}
|
||||
Kind::FlattenStruct => quote!(#field_name: StructOpt::from_clap(matches)),
|
||||
Kind::FlattenStruct => quote!(#field_name: ::structopt::StructOpt::from_clap(matches)),
|
||||
Kind::Arg(ty) => {
|
||||
use Parser::*;
|
||||
let (value_of, values_of, parse) = match *attrs.parser() {
|
||||
|
|
Loading…
Reference in a new issue