climake
Overview
climake or CLIMake is a simple, lightweight library for native argument parsing in Rust. It is designed to run without any dependancies apart from the standard library. This project does not aim to include "fancy" ux-orientated features of other Rust-based argument parsers but instead just aims to ge t the job done as uniformally, lightweight and as bug-free as possible.
Demonstration
Provided the following rust code is compiled as ./x
:
/// Inside func to hook onto inside `new_arg`
let new_arg = Argument ;
let cli = CLIMake ;
cli.parse_args;
We can use one of the following methods to call the objective example_run()
function:
./x -t
./x test
This will then output as stdout the following:
Basic argparse working
Tada! We have got an argument parser!