nushell/crates/nu-command/tests/commands/export_def.rs
pwygab 233afebdf0
allow -h flags for export subcommands (#6189)
* allow `-h` flags for `export` subcommands

* remove unnecessary check

* add tests

* fmt
2022-08-02 10:26:16 -05:00

15 lines
290 B
Rust

use nu_test_support::{nu, pipeline};
#[test]
fn export_subcommands_help() {
let actual = nu!(
cwd: ".", pipeline(
r#"
export def -h
"#
));
assert!(actual
.out
.contains("Define a custom command and export it from a module"));
}