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 ... + +Options: + --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")