Improve full help for flags (#4559)

This commit is contained in:
JT
2022-02-19 21:25:52 -05:00
committed by GitHub
parent b92aaf0432
commit a32ce93c79

View File

@ -299,7 +299,7 @@ pub fn get_flags_section(signature: &Signature) -> String {
flag.long, arg, flag.desc
)
} else {
format!(" --{} {:?}\n {}\n", flag.long, arg, flag.desc)
format!(" --{} <{:?}>\n {}\n", flag.long, arg, flag.desc)
}
} else if let Some(short) = flag.short {
if flag.required {