Browse files

help: Don't show empty Summary or Description sections

Signed-off-by: Shawn O. Pearce <sop@google.com>
(cherry picked from commit 60e6792)
  • Loading branch information...
1 parent 0d2b61f commit c7c57e34dbcc58c38c565dc98cfea4bf7736560a @spearce spearce committed Jun 4, 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 c7c57e3

Please sign in to comment.