mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
fix syntax
This commit is contained in:
parent
45edcc4d3a
commit
d2690fdf9e
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue