forked from extern/nushell
Further edits to help messages (#6913)
This commit is contained in:
@ -42,12 +42,12 @@ impl Command for Ls {
|
||||
.switch("all", "Show hidden files", Some('a'))
|
||||
.switch(
|
||||
"long",
|
||||
"List all available columns for each entry",
|
||||
"Get all available columns for each entry (slower; columns are platform-dependent)",
|
||||
Some('l'),
|
||||
)
|
||||
.switch(
|
||||
"short-names",
|
||||
"Only print the file names and not the path",
|
||||
"Only print the file names, and not the path",
|
||||
Some('s'),
|
||||
)
|
||||
.switch("full-paths", "display paths as absolute paths", Some('f'))
|
||||
|
@ -265,17 +265,17 @@ impl Command for Save {
|
||||
vec![
|
||||
Example {
|
||||
description: "Save a string to foo.txt in the current directory",
|
||||
example: r#"echo 'save me' | save foo.txt"#,
|
||||
example: r#"'save me' | save foo.txt"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Append a string to the end of foo.txt",
|
||||
example: r#"echo 'append me' | save --append foo.txt"#,
|
||||
example: r#"'append me' | save --append foo.txt"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Save a record to foo.json in the current directory",
|
||||
example: r#"echo { a: 1, b: 2 } | save foo.json"#,
|
||||
example: r#"{ a: 1, b: 2 } | save foo.json"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
|
Reference in New Issue
Block a user