} else if fatal {
drop(shell.error(&error))
} else {
- drop(writeln!(shell.err(), "{}", error))
+ println!("{}", error);
}
if !handle_cause(&error, shell) || hide {
execs().with_status(0));
assert_that(cargo_process("help").arg("search"),
execs().with_status(0));
+ // Ensure that help output goes to stdout, not stderr.
+ assert_that(cargo_process("search").arg("--help"),
+ execs().with_stderr(""));
+ assert_that(cargo_process("search").arg("--help"),
+ execs().with_stdout_contains("[..] --frozen [..]"));
}