Lines Matching refs:name
7 pub fn parser(name: &Ident) -> proc_macro2::TokenStream {
8 let into_app = into_app(name);
10 impl clap::Parser for #name {}
16 pub fn into_app(name: &Ident) -> proc_macro2::TokenStream {
18 impl clap::CommandFactory for #name {
30 pub fn from_arg_matches(name: &Ident) -> proc_macro2::TokenStream {
32 impl clap::FromArgMatches for #name {
44 pub fn subcommand(name: &Ident) -> proc_macro2::TokenStream {
45 let from_arg_matches = from_arg_matches(name);
47 impl clap::Subcommand for #name {
54 fn has_subcommand(name: &str) -> bool {
63 pub fn args(name: &Ident) -> proc_macro2::TokenStream {
64 let from_arg_matches = from_arg_matches(name);
66 impl clap::Args for #name {
79 pub fn value_enum(name: &Ident) -> proc_macro2::TokenStream {
81 impl clap::ValueEnum for #name {