mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||||
|
Reference in New Issue
Block a user