Merge pull request #4052 from tertsdiepraam/docs-fix-usage-since-clap-4

docs: fix usage string since clap 4
This commit is contained in:
Sylvestre Ledru 2022-10-17 08:39:39 +02:00 committed by GitHub
commit 15dc0aa6e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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<_>>()