This crate is fairly similar to the javascript package commander-js
. To get started, create an instance of the program struct and use it to add commands. The following is an example:
```rust
let mut program = Program::new();
program .version("0.1.0") .description("An example CLI") .author("Author's name");
program
.command("test
program.parse();
```
You can also override the default behavior of the program. You can edit the Themes and how information is printed out to stdout as follows:
rust
program.on(Event::OutputVersion, |p, v| {
println!("You are using version {} of my program", v);
println!("This program was authored by: {}", p.get_author();
});
Refer to docs.rs for full documentation on the crate.
All contributions are welcome and highly appreciated!