bestool

Macro subcommands

Source
macro_rules! subcommands {
    (
		[$argtype:ty => $ctxcode:block]($ctxmethod:ident)
		$(
			$(#[$meta:meta])*
			$modname:ident => $enumname:ident($argname:ident)
		),+
	) => { ... };
}