fix(Unified Help Messages): fixes a crash from this setting and no opts

Closes #210
This commit is contained in:
Kevin K 2015-08-30 23:36:04 -04:00
parent 3805859469
commit 169ffec100

View file

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