Skip to content

Commit

Permalink
fix(Unified Help Messages): fixes a crash from this setting and no opts
Browse files Browse the repository at this point in the history
Closes #210
  • Loading branch information
kbknapp committed Aug 31, 2015
1 parent 3805859 commit 169ffec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 169ffec

Please sign in to comment.