瀏覽代碼

help: Don't show empty Summary or Description sections

Signed-off-by: Shawn O. Pearce <sop@google.com>
Shawn O. Pearce 16 年之前
父節點
當前提交
60e679209a
共有 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()