1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 03:44:05 -05:00

fix(cli): print a newline after help and version (#9158)

This commit is contained in:
Casper Beyer 2021-01-19 08:56:24 +08:00 committed by GitHub
parent db3a1d6633
commit f43855cead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1268,6 +1268,7 @@ pub fn main() {
|| err.kind == clap::ErrorKind::VersionDisplayed =>
{
err.write_to(&mut std::io::stdout()).unwrap();
std::io::stdout().write_all(b"\n").unwrap();
std::process::exit(0);
}
Err(err) => unwrap_or_exit(Err(AnyError::from(err))),