Skip to content

Commit 169ffec

Browse files
committed
fix(Unified Help Messages): fixes a crash from this setting and no opts
Closes #210
1 parent 3805859 commit 169ffec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar>{
16361636
l
16371637
);
16381638
self.print_spaces(
1639-
if !self.unified_help {
1639+
if !self.unified_help || longest_opt == 0 {
16401640
(longest_flag + 4)
16411641
} else {
16421642
(longest_opt + 4)

0 commit comments

Comments
 (0)