From 7095d8994eb2f9f829c5a1ac1342af75c9b53bd4 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Fri, 17 Mar 2023 11:15:41 +0200 Subject: [PATCH] Add char --list example to char command docs (#8474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 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. --- crates/nu-command/src/strings/char_.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/nu-command/src/strings/char_.rs b/crates/nu-command/src/strings/char_.rs index 1a9c991a1..0884f40ec 100644 --- a/crates/nu-command/src/strings/char_.rs +++ b/crates/nu-command/src/strings/char_.rs @@ -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)"#,