Expand description
An attribute macro to simplify writing simple command line applications.
Examples
#[fncli::cli]
fn main(a: i32, b: i32) {
println!("{}", a + b);
}
$ cargo run 1 2
3
Attribute Macros
- The
cli
attribute macro.
An attribute macro to simplify writing simple command line applications.
#[fncli::cli]
fn main(a: i32, b: i32) {
println!("{}", a + b);
}
$ cargo run 1 2
3
cli
attribute macro.