Skip to content
Browse files

help: Don't show empty Summary or Description sections

Signed-off-by: Shawn O. Pearce <sop@google.com>
  • Loading branch information...
1 parent f1a6b14 commit 60e679209a5495393ef584efaaad287fc8b77c51 @spearce spearce committed Jun 3, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 subcmds/help.py
View
2 subcmds/help.py
@@ -94,6 +94,8 @@ def _PrintSection(self, heading, bodyAttr):
body = getattr(cmd, bodyAttr)
except AttributeError:
return
+ if body == '' or body is None:
+ return
self.nl()

0 comments on commit 60e6792

Please sign in to comment.
Something went wrong with that request. Please try again.