diff --git a/src/args/arg_builder/positional.rs b/src/args/arg_builder/positional.rs index 82c2f11e4f1..b80a235e6fb 100644 --- a/src/args/arg_builder/positional.rs +++ b/src/args/arg_builder/positional.rs @@ -104,7 +104,7 @@ impl<'n, 'e> Display for PosBuilder<'n, 'e> { } else { try!(write!(f, "<{}>", self.b.name)); } - if self.b.settings.is_set(ArgSettings::Multiple) && self.v.val_names.is_none() { + if self.b.settings.is_set(ArgSettings::Multiple) && (self.v.val_names.is_none() || self.v.val_names.as_ref().unwrap().len() == 1) { try!(write!(f, "...")); } diff --git a/tests/help.rs b/tests/help.rs index 73b695cc52e..32dda3e307c 100644 --- a/tests/help.rs +++ b/tests/help.rs @@ -398,8 +398,8 @@ OPTIONS: -t, --timeout Timeout in seconds. By default, there is no timeout. ARGS: - The path of the binary to be profiled. If empty, Cargo.toml is searched for a binary. - ... Any arguments you wish to pass to the binary being profiled."; + The path of the binary to be profiled. for a binary. + ... Any arguments you wish to pass to the being profiled."; static LAST_ARG_REQ_MULT: &'static str = "example 1.0 @@ -501,12 +501,12 @@ fn args_with_last_usage() { .takes_value(true) ) .arg(Arg::with_name("binary path") - .help("The path of the binary to be profiled. If empty, Cargo.toml is searched for a binary.") + .help("The path of the binary to be profiled. for a binary.") .takes_value(true) .value_name("BINFILE") ) .arg(Arg::with_name("pass through args") - .help("Any arguments you wish to pass to the binary being profiled.") + .help("Any arguments you wish to pass to the being profiled.") .value_name("ARGS") .last(true) .multiple(true)