forked from orbit-oss/flask
Handle help arg by itself the same as no args
When the 'flask' command is used with only the '--help' parameter, this change will make sure to try and load the app before the help callback is run. This was previously only being done when the 'flask' command was used by itself. This meant when passing in '--help', any custom commands were not getting shown in the help message. With this change, custom commands will be included in the help message when running 'flask' on the command line by itself or with the '--help' parameter.
This commit is contained in:
parent
08c480b3b3
commit
da60039486
2 changed files with 5 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ Version 3.1.1
|
|||
Unreleased
|
||||
|
||||
- Fix type hint for `cli_runner.invoke`. :issue:`5645`
|
||||
- ``flask --help`` loads the app and plugins first to make sure all commands
|
||||
are shown. :issue:5673`
|
||||
|
||||
|
||||
Version 3.1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue