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
This commit is contained in:
Henrik Lissner 2022-07-04 18:40:39 +02:00
parent 38a3a50951
commit 94a4a7a58b
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -65,7 +65,7 @@ OPTIONS:
((null sections) ((null sections)
(if (null cli) (if (null cli)
(signal 'doom-cli-command-not-found-error command) (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?))) (exit! :pager?)))
(t (t
(dolist (section sections) (dolist (section sections)