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:
Luc Perkins 2023-03-17 11:15:41 +02:00 committed by GitHub
parent 2d41613039
commit 7095d8994e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,11 @@ impl Command for Char {
example: r#"char newline"#, example: r#"char newline"#,
result: Some(Value::test_string("\n")), result: Some(Value::test_string("\n")),
}, },
Example {
description: "List available characters",
example: r#"char --list"#,
result: None,
},
Example { Example {
description: "Output prompt character, newline and a hamburger menu character", description: "Output prompt character, newline and a hamburger menu character",
example: r#"(char prompt) + (char newline) + (char hamburger)"#, example: r#"(char prompt) + (char newline) + (char hamburger)"#,