wip: clap_derive docs

This commit is contained in:
Kevin K 2020-04-28 22:29:49 -04:00 committed by Pavan Kumar Sunkara
parent c76f526773
commit 609202e2a0

View file

@ -36,7 +36,12 @@ pub fn arg_enum(input: TokenStream) -> TokenStream {
derives::derive_arg_enum(&input).into()
}
/// Generates the `Clap` impl.
/// Generates the `Clap` implementation.
///
/// This is far less verbose than defining the [`App`] struct manually,
/// receiving an instance of [`ArgMatches`] from conducting parsing, and then
/// implementing a conversion code (usually `impl From<ArgMatches> for
/// MyStruct`) to instantiate an instance of the user context struct.
#[proc_macro_derive(Clap, attributes(clap))]
#[proc_macro_error]
pub fn clap(input: TokenStream) -> TokenStream {