Add option to not overwrite debug flag in cli
This is mainly intended for custom CLIs that may load a config file which already sets the debug flag and does not make use of the `FLASK_*` env vars at all.
This commit is contained in:
parent
b34c7174e7
commit
50227f0954
3 changed files with 39 additions and 9 deletions
|
|
@ -12,8 +12,11 @@ Unreleased
|
|||
- :func:`send_file` encodes filenames as ASCII instead of Latin-1
|
||||
(ISO-8859-1). This fixes compatibility with Gunicorn, which is
|
||||
stricter about header encodings than PEP 3333. (`#2766`_)
|
||||
- Allow custom CLIs using ``FlaskGroup`` to set the debug flag without
|
||||
it always being overwritten based on environment variables. (`#2765`_)
|
||||
|
||||
.. _#2766: https://github.com/pallets/flask/issues/2766
|
||||
.. _#2765: https://github.com/pallets/flask/pull/2765
|
||||
|
||||
|
||||
Version 1.0.2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue