From cd94b3188d63b63295a319e90e826bca46befcd2 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Thu, 1 Dec 2016 18:45:24 -0500 Subject: [PATCH] fix(Help Messages): fixes help message alignment when specific settings are used on options Prior to this commit setting `number_of_values(1)` and `multiple(true)` would cause the help message alignment to be off. This commit fixes that. Closes #760 --- src/args/arg_builder/option.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/args/arg_builder/option.rs b/src/args/arg_builder/option.rs index 361fc117b3d..54c3f11f9ef 100644 --- a/src/args/arg_builder/option.rs +++ b/src/args/arg_builder/option.rs @@ -71,6 +71,9 @@ impl<'n, 'e> Display for OptBuilder<'n, 'e> { try!(write!(f, " ")); } } + if self.is_set(ArgSettings::Multiple) && num == 1 { + try!(write!(f, "...")); + } } else { try!(write!(f, "<{}>{}",