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()
.to_string()
.lines()
.skip(1)
.map(|l| l.strip_prefix("Usage:").unwrap_or(l))
.map(|l| l.trim())
.filter(|l| !l.is_empty())
.collect::<Vec<_>>()