commit | 60e679209a5495393ef584efaaad287fc8b77c51 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Wed Jun 03 17:43:16 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Fri Jul 03 11:00:16 2009 -0700 |
tree | 11aebc3d30a82685da22fe8b315cff15270a6ddf | |
parent | f1a6b14fdc5402f9ed765a8a342d9c07c5b91e2d [diff] |
help: Don't show empty Summary or Description sections Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/subcmds/help.py b/subcmds/help.py index 01d5fa2..e2f3074 100644 --- a/subcmds/help.py +++ b/subcmds/help.py
@@ -94,6 +94,8 @@ body = getattr(cmd, bodyAttr) except AttributeError: return + if body == '' or body is None: + return self.nl()