Crates.io | climake |
lib.rs | climake |
version | 2.2.2 |
source | src |
created_at | 2020-02-24 18:32:08.338125 |
updated_at | 2020-10-03 21:10:06.740605 |
description | The simple, dependency-less cli library ✨ |
homepage | |
repository | https://github.com/rust-cli/climake |
max_upload_size | |
id | 212062 |
size | 61,862 |
The simple, dependency-less cli library ✨
use climake::{Argument, CliMake, DataType};
fn main() {
let args = &[
Argument::new(
&['o'],
&["output", "out"],
Some("Example output arg"),
DataType::Files,
).unwrap(),
Argument::new(
&['a', 'b', 'c'],
&[],
Some("Alphabet!"),
DataType::None,
).unwrap(),
];
let cli = CliMake::new(args, Some("A showcase CLI to demonstrate climake"), None).unwrap();
println!("Args used: {:#?}", cli.parse());
}
Simply add the following to your Cargo.toml
file:
[dependencies]
climake = "2.2"
Duel-licensed under both the MIT License (LICENSE-MIT
) and Apache 2.0 License (LICENSE-APACHE
), you may choose at your discretion.