Function uucore::format_usage
source · pub fn format_usage(s: &str) -> String
Expand description
Generate the usage string for clap.
This function does two things. It indents all but the first line to align
the lines because clap adds “Usage: “ to the first line. And it replaces
all occurrences of {}
with the execution phrase and returns the resulting
String
. It does not support more advanced formatting features such
as {0}
.