From 169ffec1003d58d105d7ef2585b3425e57980000 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Sun, 30 Aug 2015 23:36:04 -0400 Subject: [PATCH] fix(Unified Help Messages): fixes a crash from this setting and no opts Closes #210 --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 8ee354e3..6b40d286 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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)