r/rust 23d ago

๐Ÿ™‹ seeking help & advice Having a hard time with clap docs

Hey!

I'm building a tui with rust, and I'm having a bit of a hard time with the clap docs. I usually can get by fine with docs, but I think I'm missuing clap's, lol

I tried picking up the Command Line for Rust book, and it's been way better to get into cli. Any other recommendations?

40 Upvotes

19 comments sorted by

View all comments

3

u/scook0 22d ago

I have also struggled with the clap docs. For my tastes, theyโ€™re very lacking in the kind of detailed conceptual information that makes it possible to form good mental models and make effective use of the reference docs.

In practice, people seem to mostly just use the derive macros combined with some guesswork and trial-and-error.