diff --git a/crates/nu-cmd-lang/src/core_commands/scope/commands.rs b/crates/nu-cmd-lang/src/core_commands/scope/commands.rs index 4a2a0225a5..5feed1a9ee 100644 --- a/crates/nu-cmd-lang/src/core_commands/scope/commands.rs +++ b/crates/nu-cmd-lang/src/core_commands/scope/commands.rs @@ -10,7 +10,7 @@ impl Command for ScopeCommands { fn signature(&self) -> Signature { Signature::build("scope commands") - .input_output_types(vec![(Type::Nothing, Type::Any)]) + .input_output_types(vec![(Type::Nothing, Type::List(Box::new(Type::Any)))]) .allow_variants_without_examples(true) .category(Category::Core) } diff --git a/crates/nu-command/src/help/help_.rs b/crates/nu-command/src/help/help_.rs index 594504fd42..47f268c5c2 100644 --- a/crates/nu-command/src/help/help_.rs +++ b/crates/nu-command/src/help/help_.rs @@ -116,7 +116,7 @@ You can also learn more at https://www.nushell.sh/book/"#; }, Example { description: "show help for single sub-command, alias, or module", - example: "help str lpad", + example: "help str join", result: None, }, Example { diff --git a/crates/nu-command/tests/main.rs b/crates/nu-command/tests/main.rs index 93bb99e3cf..72ccee3d85 100644 --- a/crates/nu-command/tests/main.rs +++ b/crates/nu-command/tests/main.rs @@ -233,7 +233,7 @@ fn usage_start_uppercase() { // Check lowercase to allow usage to contain syntax like: // - // "`let-env FOO = ...` …" + // "`$env.FOO = ...`" if usage.starts_with(|u: char| u.is_lowercase()) { failures.push(format!("{cmd_name}: \"{usage}\"")); } diff --git a/crates/nu-std/std/help.nu b/crates/nu-std/std/help.nu index da9ded9ea1..0170fd78fc 100644 --- a/crates/nu-std/std/help.nu +++ b/crates/nu-std/std/help.nu @@ -715,7 +715,7 @@ def pretty-cmd [] { # > help match # # show help for single sub-command, alias, or module -# > help str lpad +# > help str join # # search for string in command names, usage and search terms # > help --find char