From ed6b4c8635fd1a0d757009938068a9c98603c372 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 15 Oct 2022 22:30:52 +0200 Subject: [PATCH] docs: fix usage string since clap 4 --- src/bin/uudoc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/uudoc.rs b/src/bin/uudoc.rs index 20b612e00..df4a3a897 100644 --- a/src/bin/uudoc.rs +++ b/src/bin/uudoc.rs @@ -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::>()