From 341e8b353195857836100e60f19973d403e7fee7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 5 Dec 2019 19:34:09 -0500 Subject: [PATCH] cli/help: only show aliases if there are any --- core/cli/help.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/cli/help.el b/core/cli/help.el index a1afd3e36..39e136b54 100644 --- a/core/cli/help.el +++ b/core/cli/help.el @@ -28,7 +28,8 @@ collect (format "[%s]" (upcase (symbol-name arg))))) " ") "")) - (print! "Aliases: %s" (string-join (doom-cli-aliases cli) ", "))) + (when-let (aliases (doom-cli-aliases cli)) + (print! "Aliases: %s" (string-join aliases ", ")))) (defun doom--cli-print-desc (cli &optional short) (print! "%s"