From c133bea7210088e78ff4e40829da9276ce42924e Mon Sep 17 00:00:00 2001
From: Jaffa Planquart <geoffroy@planquart.fr>
Date: Thu, 14 Nov 2024 16:17:25 +0100
Subject: [PATCH] test(help): Display value terminator

---
 tests/builder/help.rs | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/tests/builder/help.rs b/tests/builder/help.rs
index fb203b0e59e..ebb90477271 100644
--- a/tests/builder/help.rs
+++ b/tests/builder/help.rs
@@ -2064,6 +2064,34 @@ Options:
     utils::assert_output(cmd, "test --help", expected, false);
 }
 
+#[test]
+fn display_value_terminator() {
+    let cmd = Command::new("test")
+        .author("Jaffa")
+        .about("Likes seeing the value terminator")
+        .arg(
+            Arg::new("cmd")
+                .long("cmd")
+                .action(ArgAction::Append)
+                .help("command to run")
+                .required(true)
+                .num_args(1..)
+                .value_terminator(";"),
+        );
+
+    let expected = str![[r#"
+Likes seeing the value terminator
+
+Usage: test --cmd <cmd>...
+
+Options:
+      --cmd <cmd>...  command to run
+  -h, --help          Print help
+
+"#]];
+    utils::assert_output(cmd, "test --help", expected, false);
+}
+
 #[test]
 fn custom_headers_headers() {
     let cmd = Command::new("blorp")