Thinking about re-writing my clunky Rust command line tool[1] using clap.rs[2], in the hopes of (a) learning something, (b) making it more useful to users, and (c) making it easier for others to contribute.

Do any of y'all have clap.rs tutorials/examples you like? (Beyond the examples included in the repo itself, which I will try to learn from)

(1) github.com/sts10/medic
(2) github.com/clap-rs/clap

Follow

@schlink depending on how much control you need, you might want to check out structopt first -- it uses clap under the hood, but exposes a more declarative API

crates.io/crates/structopt

Sign in to participate in the conversation
cèilidh.space

"cèilidh" (pronounced "kay-lee") is a Scottish Gaelic word meaning "visit." It is used to describe large gatherings where communities would come together to eat, drink, and be merry. This instance uses Mutant Standard emoji, which are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.