Skip to content

Commit

Permalink
fix(Help Message): fixes a regression bug where args with multiple(tr…
Browse files Browse the repository at this point in the history
…ue) threw off alignment

Closes #702
  • Loading branch information
kbknapp committed Oct 24, 2016
1 parent cf26cd8 commit ebddac7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit ebddac7

Please sign in to comment.