From ebddac791f3ceac193d5ad833b4b734b9643a7af Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 24 Oct 2016 05:55:45 -0400 Subject: [PATCH] fix(Help Message): fixes a regression bug where args with multiple(true) threw off alignment Closes #702 --- src/app/help.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/help.rs b/src/app/help.rs index b28cb181..f7ce9c72 100644 --- a/src/app/help.rs +++ b/src/app/help.rs @@ -307,8 +307,14 @@ impl<'a> Help<'a> { try!(write!(self.writer, " ")); } } + if arg.is_set(ArgSettings::Multiple) && num == 1 { + try!(color!(self, "...", good)); + } } else if arg.has_switch() { try!(color!(self, "<{}>", arg.name(), good)); + if arg.is_set(ArgSettings::Multiple) { + try!(color!(self, "...", good)); + } } else { try!(color!(self, "{}", arg, good)); }