Merge pull request #211 from kbknapp/issue-210

fix(Unified Help Messages): fixes a crash from this setting and no opts
This commit is contained in:
Kevin K. 2015-08-30 23:43:32 -04:00
commit 571a3516be

View file

@ -1636,7 +1636,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
l
);
self.print_spaces(
if !self.unified_help {
if !self.unified_help || longest_opt == 0 {
(longest_flag + 4)
} else {
(longest_opt + 4)