Use a default template instead of separate code path in Help::write_help #2002
Labels
A-help
Area: documentation, including docs.rs, readme, examples, etc...
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Milestone
As @kitlith noticed in #1986 (comment),:
In other words, instead of using some sort of hardcoded template, we use a separate function that acts like a hardcoded template.
I think that it worth exploring simply using a hardcoded template instead of a separate code path. We may also export this template as
pub static: &str DEFAULT_TEMPLATE
, but I'm opposed to considering precise contents of the default template as an API contract as we may (and probably will) tweak it here and there.Related code:
clap/src/output/help.rs
Lines 110 to 115 in 9fc8ec9
The function in question:
clap/src/output/help.rs
Line 821 in 9fc8ec9
The text was updated successfully, but these errors were encountered: