Skip to content
Myr

Add --debug option to flask run

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Grey Li · committed by David Lord · parent 79032ca · Browse files · 2 files+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−1 removed

  • other:+9 added−1 removed

2 files+9 added−1 removed

modified:src/flask/cli.py+8 added-1 removed
836 unmodified lines
837 expose_value=False,838 help="The key file to use when specifying a certificate.",839)840@click.option(841 "--debug/--no-debug",842 default=None,843 help="Enable or disable the debug mode.",844)845@click.option(846 "--reload/--no-reload",847 default=None,848 help="Enable or disable the reloader. By default the reloader "849 "is active if debug is enabled.",
32 unmodified lines
882def run_command(883 info,884 host,885 port,886 debug,887 reload,888 debugger,889 with_threads,890 cert,
24 unmodified lines
915 # When not reloading, raise the error immediately so the916 # command fails.917 raise e from None918919 if debug is None:913 debug = get_debug_flag()920 debug = get_debug_flag()921922 if reload is None:923 reload = debug924
134 unmodified lines
modified:CHANGES.rst+1 added
5 unmodified lines
6- Autoescaping is now enabled by default for ``.svg`` files. Inside7 templates this behavior can be changed with the ``autoescape`` tag.8 :issue:`4831`9- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`10- Add ``--debug`` option to the ``flask run`` command. :issue:`4777`111213Version 2.2.214-------------
1405 unmodified lines