♻️ rework some help strings (#12306)

# Description

I changed some help outputs:


![image](https://github.com/nushell/nushell/assets/30557287/d25f0fbe-ffc3-43b3-93cf-b1793d2351b6)


![image](https://github.com/nushell/nushell/assets/30557287/acb5581c-8959-4916-8a55-d3ed6a2e1dcf)

I also checked with `rg` the commands deprecated in #9840 and found a
help or a comment here and there.

# User-Facing Changes

same of above

# Tests + Formatting
This commit is contained in:
Auca Coyan 2024-03-27 10:41:02 -03:00 committed by GitHub
parent 01d30a416b
commit bf8de9d1ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ impl Command for ScopeCommands {
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build("scope commands") 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) .allow_variants_without_examples(true)
.category(Category::Core) .category(Category::Core)
} }

View File

@ -116,7 +116,7 @@ You can also learn more at https://www.nushell.sh/book/"#;
}, },
Example { Example {
description: "show help for single sub-command, alias, or module", description: "show help for single sub-command, alias, or module",
example: "help str lpad", example: "help str join",
result: None, result: None,
}, },
Example { Example {

View File

@ -233,7 +233,7 @@ fn usage_start_uppercase() {
// Check lowercase to allow usage to contain syntax like: // Check lowercase to allow usage to contain syntax like:
// //
// "`let-env FOO = ...` …" // "`$env.FOO = ...`"
if usage.starts_with(|u: char| u.is_lowercase()) { if usage.starts_with(|u: char| u.is_lowercase()) {
failures.push(format!("{cmd_name}: \"{usage}\"")); failures.push(format!("{cmd_name}: \"{usage}\""));
} }

View File

@ -715,7 +715,7 @@ def pretty-cmd [] {
# > help match # > help match
# #
# show help for single sub-command, alias, or module # 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 # search for string in command names, usage and search terms
# > help --find char # > help --find char