fix syntax

This commit is contained in:
Sylvestre Ledru 2025-08-09 22:48:16 +02:00
parent 45edcc4d3a
commit d2690fdf9e

View file

@ -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);
}