Exit successfully from nu --help for compatibility with halp (#8478)

https://github.com/orhun/halp finds the correct help command
by checking if `cmd --help` succeeds.

All standard utilities I've tried exit successfully on `--help`,
but not nushell.
This commit is contained in:
Bram Geron 2023-03-16 13:03:29 +01:00 committed by GitHub
parent e672689a76
commit 4c97b3dd28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ pub(crate) fn parse_commandline_args(
let _ = std::panic::catch_unwind(move || stdout_write_all_and_flush(full_help));
std::process::exit(1);
std::process::exit(0);
}
if call.has_flag("version") {