mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
skeleton of enum impl
This commit is contained in:
parent
00f313b5d1
commit
08aeb9b1fb
1 changed files with 9 additions and 1 deletions
|
@ -300,7 +300,15 @@ fn impl_structopt_for_struct(name: &Ident, fields: &[Field], attrs: &[Attribute]
|
|||
}
|
||||
|
||||
fn impl_structopt_for_enum(_variants: &[Variant]) -> quote::Tokens {
|
||||
quote!()
|
||||
quote! {
|
||||
impl _structopt::StructOpt for #name {
|
||||
}
|
||||
|
||||
impl #name {
|
||||
fn from_subcommand<'a, 'b>(sub: (&'b str, Option<&'b _structopt::clap::ArgMatches<'a, 'b>>)) -> Option<Self> {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn impl_structopt(ast: &DeriveInput) -> quote::Tokens {
|
||||
|
|
Loading…
Reference in a new issue