From 8519dc4a10d47747e6df3f47e25c36bf16befe00 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 1 Mar 2024 14:49:48 +0000 Subject: feat(send): fix grammar in cli output refer to a single patch as patch rather than patches --- src/sub_commands/send.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/sub_commands') diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index 6417870..2a6c220 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs @@ -178,12 +178,19 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { )?; println!( - "posting {} patches {} a covering letter...", + "posting {} patch{} {} a covering letter...", if cover_letter_title_description.is_none() { events.len() } else { events.len() - 1 }, + if cover_letter_title_description.is_none() && events.len().eq(&1) + || cover_letter_title_description.is_some() && events.len().eq(&2) + { + "es" + } else { + "" + }, if cover_letter_title_description.is_none() { "without" } else { -- cgit v1.2.3