Do not display help in red

This commit is contained in:
2023-04-30 15:46:47 +02:00
parent 27c8ab71a0
commit 1f39f08dc9
2 changed files with 15 additions and 19 deletions

View File

@@ -55,13 +55,12 @@ fn run_main(cmd_line: CommandLine) -> Result<(), Error> {
fn main() {
match CommandLine::try_parse() {
Ok(cmd_line) => {
match run_main(cmd_line) {
Ok(_) => (),
Err(error) => exit_with_error(error)
if let Err(error) = run_main(cmd_line) {
exit_with_error(error)
}
},
Err(error) => {
exit_with_error(Error::from_error(error))
eprintln!("{}", error)
}
}
}