mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Do not create help for wrapped command (#11235)
Pretty self-explanatory. The commit is only one `if`. Fix #11096
This commit is contained in:
@ -299,3 +299,9 @@ fn def_env_wrapped() {
|
||||
);
|
||||
assert_eq!(actual.out, "bacon");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn def_env_wrapped_no_help() {
|
||||
let actual = nu!("def --wrapped foo [...rest] { echo $rest }; foo -h | to json --raw");
|
||||
assert_eq!(actual.out, r#"["-h"]"#);
|
||||
}
|
||||
|
Reference in New Issue
Block a user