fix(help): fix formatting for option arguments with no long

This commit is contained in:
Kevin K 2015-04-02 14:28:23 -04:00
parent 1da0905b11
commit e869100423

View file

@ -556,7 +556,7 @@ impl<'a, 'v, 'ab, 'u, 'ar> App<'a, 'v, 'ab, 'u, 'ar>{
self.get_spaces((longest_opt + 4) - (v.long.unwrap().len() + v.name.len() + 2 + mult))
} else {
// 7 is '--=' (3) + tab (4)
self.get_spaces(longest_opt + 7)
self.get_spaces((longest_opt + 6) - (v.name.len() + mult))
},
if let Some(h) = v.help {
format!("{}{}", h,