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:
parent
38a3a50951
commit
94a4a7a58b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue