forked from extern/nushell
Add char --list example to char command docs (#8474)
# Description
When using `char`, I somehow missed the `--list` flag (even though it's
of course displayed in the help output). While it's maybe a bit
redundant to have a usage of the flag in the examples, I suspect that I
may not be alone in needing an extra nudge on getting that info 😄
# User-Facing Changes
Just an extra example in the `char` help output.
This commit is contained in:
parent
2d41613039
commit
7095d8994e
@ -185,6 +185,11 @@ impl Command for Char {
|
||||
example: r#"char newline"#,
|
||||
result: Some(Value::test_string("\n")),
|
||||
},
|
||||
Example {
|
||||
description: "List available characters",
|
||||
example: r#"char --list"#,
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Output prompt character, newline and a hamburger menu character",
|
||||
example: r#"(char prompt) + (char newline) + (char hamburger)"#,
|
||||
|
Loading…
Reference in New Issue
Block a user