-
Please complete the following tasks
Describe your use caseThe tealdeer help text currently includes some invocation examples after the regular help text (using docopt):
I'm currently migrating the codebase to Clap v3. Is there a way to add these "usage examples" to the help text? Describe the solution you'd likeIt might be useful if usage examples could be attached to a CLI, which automatically show up in the help text. This could be generalized to not just examples, but any additional help text. (Or is this already possible? I searched issues / discussion but could not find anything.) Note that we'd probably need at least some kind of semantics attached to this "additional help text" data, otherwise help coloring would probably break. Alternatives, if applicableNo response Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://docs.rs/clap/3.0.0-beta.2/clap/struct.App.html#method.after_help |
Beta Was this translation helpful? Give feedback.
https://docs.rs/clap/3.0.0-beta.2/clap/struct.App.html#method.after_help