Review of clap examples in 2.33 and 4.1.4 #4690
Replies: 3 comments 16 replies
-
Sure! |
Beta Was this translation helpful? Give feedback.
-
I'll have to look first to see what would work out. We try to balance providing familiar examples (e.g. our git example) with not overwhelming the user. |
Beta Was this translation helpful? Give feedback.
-
Any particular reason you stuck with the builder API? The builder API is our more advanced, low level API so which you use probably depends on your target audience |
Beta Was this translation helpful? Give feedback.
-
First off, thank you for such an amazing crate!
I'm the author of Command-Line Rust (O'Reilly, 2022), a book that challenges readers to write their own versions of 14 existing BSD/GNU utilities like "head" and "comm." I use clap exclusively to handle arguments, but version 2.33 was the latest when I was writing. All the source code and tests are in https://github.com/kyclark/command-line-rust. I've now created a branch showing how to use the builder pattern of v4.1.4 at https://github.com/kyclark/command-line-rust/tree/clap_v4.
I was hoping for two things:
Beta Was this translation helpful? Give feedback.
All reactions