Further edits to help messages (#6913)

This commit is contained in:
Leon
2022-10-27 02:36:42 +10:00
committed by GitHub
parent 902aad6016
commit 5add5cbd12
34 changed files with 113 additions and 73 deletions

View File

@ -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'))

View File

@ -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 {