From d2690fdf9e7cbd16624944ac7c7d488d6311311c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 9 Aug 2025 22:48:16 +0200 Subject: [PATCH] fix syntax --- src/uucore/src/lib/mods/clap_localization.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uucore/src/lib/mods/clap_localization.rs b/src/uucore/src/lib/mods/clap_localization.rs index 2d33a4b19..024590440 100644 --- a/src/uucore/src/lib/mods/clap_localization.rs +++ b/src/uucore/src/lib/mods/clap_localization.rs @@ -184,9 +184,9 @@ pub fn handle_clap_error_with_exit_code(err: Error, util_name: &str, exit_code: if let Some(main_error_line) = lines.first() { // Keep the "error: " prefix for test compatibility eprintln!("{}", main_error_line); - + eprintln!(); // Use the execution phrase for the help suggestion to match test expectations - eprintln!("For more information, try '--help'"); + eprintln!("For more information, try '--help'."); } else { // Fallback to original rendering if we can't parse eprint!("{}", err.render()); @@ -204,7 +204,7 @@ pub fn handle_clap_error_with_exit_code(err: Error, util_name: &str, exit_code: } // Always use the expected test format for help - eprintln!("For more information, try '--help'"); + eprintln!("For more information, try '--help'."); std::process::exit(exit_code); }