I'm starting a CLI project in #rust

I wonder if it matters what style of definition I use with Clap.

Is it a matter of preference or is there a generally "preferred way" when defining your commands? Derived vs Builder

Follow

@selvin I prefer Derived for complex commands because I get structs out for free, and prefer Builder for simple commands with only a couple arguments.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.