fix(Help Message): fixes a regression bug where args with multiple(true) threw off alignment

Closes #702
This commit is contained in:
Kevin K 2016-10-24 05:55:45 -04:00
parent cf26cd83aa
commit ebddac791f
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A

View file

@ -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));
}