From 94a4a7a58be28df3a9e5e04a897679fd548e1b0b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 4 Jul 2022 18:40:39 +0200 Subject: [PATCH] fix(cli): display global options in --help output Global options were omitted in help output for subcommands before this fix. This caused #6533, where the user was unable to find the correct option to suppress prompts because 'doom upgrade --help' would not show --force/-!, but 'doom --help' would. Still, it's unreasonable to expect the user to know this beforehand. Ref: #6533 --- core/cli/help.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli/help.el b/core/cli/help.el index 3f62fd092..a5e133a93 100644 --- a/core/cli/help.el +++ b/core/cli/help.el @@ -65,7 +65,7 @@ OPTIONS: ((null sections) (if (null cli) (signal 'doom-cli-command-not-found-error command) - (doom-cli-help--print cli context manpage? (not localonly?)) + (doom-cli-help--print cli context manpage? localonly?) (exit! :pager?))) (t (dolist (section sections)