mirror of
https://github.com/nushell/nushell.git
synced 2025-02-16 10:32:29 +01:00
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:
parent
e672689a76
commit
4c97b3dd28
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user