The simple, dependency-less cli framework ✨
```rust use climake::*;
/// This will be ran when the -q (or --qwerty) argument is ran. args are the
/// arguments passed.
fn qwertyrunme(args: Vec
fn otherargmain(_args: Vec
fn main() {
let qwertyarg = CliArgument::new(
vec!['q'],
vec!["qwerty"],
Some("Some useful help info."),
Box::new(&qwertyrun_me), // this could be any closure/func with the arg being Vec<String>
);
let other_arg = CliArgument::new(
vec!['o', 't'],
vec!["other"],
None, // no help here!
Box::new(&other_arg_main),
);
let cli = CliMake::new(
vec![qwerty_arg, other_arg],
Some("This is some help info for this example CLI."),
)
.unwrap();
cli.parse() // runs all given parts like qwerty_run_me if called
} ```
Simply add the following to your Cargo.toml
file:
toml
[dependancies]
climake = "1.0"