A simple, lightweight and extensible command line argument parser for rust codebases.
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:
let mut program = new;
program
.version
.description
.author;
program
.command
.alias
.description
.option
.option
.action
.build;
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:
program.on
Refer to docs.rs for full documentation on the crate. Also check out the repository on github for examples of crate usage here.
If you found this crate useful, consider starring this repo.
Contributing
All contributions are welcome and highly appreciated!