docs: fix usage string since clap 4

This commit is contained in:
Terts Diepraam 2022-10-15 22:30:52 +02:00
parent d9ca1d4805
commit ed6b4c8635

View file

@ -170,7 +170,7 @@ impl<'a, 'b> MDWriter<'a, 'b> {
.render_usage() .render_usage()
.to_string() .to_string()
.lines() .lines()
.skip(1) .map(|l| l.strip_prefix("Usage:").unwrap_or(l))
.map(|l| l.trim()) .map(|l| l.trim())
.filter(|l| !l.is_empty()) .filter(|l| !l.is_empty())
.collect::<Vec<_>>() .collect::<Vec<_>>()