We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06799d commit 62f82efCopy full SHA for 62f82ef
1 file changed
src/uucore/src/lib/mods/clap_localization.rs
@@ -93,17 +93,16 @@ fn handle_display_errors(err: Error) -> ! {
93
let usage_label = translate!("common-usage");
94
let localized_help = help_text.replace("Usage:", &format!("{usage_label}:"));
95
96
- print!("{}", localized_help);
97
- std::process::exit(0);
+ print!("{localized_help}");
98
}
99
ErrorKind::DisplayVersion => {
100
// For version, use clap's built-in formatting and exit with 0
101
// Output to stdout as expected by tests
102
print!("{}", err.render());
103
104
105
_ => unreachable!("handle_display_errors called with non-display error"),
106
+ std::process::exit(0);
107
108
109
/// Handle UnknownArgument errors with localization and suggestions
0 commit comments