Attribute Macro fncmd_impl::fncmd [−][src]
#[fncmd]
Expand description
The fncmd
macro. This can only be applied to the main
function.
/// Description of the command line tool
#[fncmd]
pub fn main(
/// Argument foo
#[opt(short, long)]
foo: String,
/// Argument bar
#[opt(short, long)]
bar: Option<String>,
) {
println!("{:?} {:?}", foo, bar);
}