#cli #argument #arg #datatype #dependency-less #output #

yanked climake

The simple, dependency-less cli library ✨

2.2.2 Oct 3, 2020
2.1.0 Sep 20, 2020
1.0.3 Jul 10, 2020
1.0.2 Jun 2, 2020
0.1.7 Feb 26, 2020

#40 in #datatype

40 downloads per month

MIT/Apache

31KB
260 lines

climake

The simple, dependency-less cli library ✨

Example 📚

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());
}

Installation 🚀

Simply add the following to your Cargo.toml file:

[dependencies]
climake = "2.2"

License

Duel-licensed under both the MIT License (LICENSE-MIT) and Apache 2.0 License (LICENSE-APACHE), you may choose at your discretion.

No runtime deps