浏览代码

help: Don't show empty Summary or Description sections

Signed-off-by: Shawn O. Pearce <sop@google.com>
(cherry picked from commit 60e679209a5495393ef584efaaad287fc8b77c51)
Shawn O. Pearce 16 年之前
父节点
当前提交
c7c57e34db
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      subcmds/help.py

+ 2 - 0
subcmds/help.py

@@ -94,6 +94,8 @@ See 'repo help --all' for a complete list of recognized commands.
           body = getattr(cmd, bodyAttr)
         except AttributeError:
           return
+        if body == '' or body is None:
+          return
 
         self.nl()