Fix #2897 - Add extra_files option to flask run CLI
This commit is contained in:
parent
4fe81d7c62
commit
2308cba407
3 changed files with 23 additions and 2 deletions
|
|
@ -778,8 +778,12 @@ def _validate_key(ctx, param, value):
|
|||
default=True,
|
||||
help="Enable or disable multithreading.",
|
||||
)
|
||||
@click.option('--extra-files', '-f',
|
||||
multiple=True, default=None, type=click.Path(),
|
||||
help='Files reloader should watch additionally to the modules')
|
||||
@pass_script_info
|
||||
def run_command(info, host, port, reload, debugger, eager_loading, with_threads, cert):
|
||||
def run_command(info, host, port, reload, debugger, eager_loading,
|
||||
with_threads, cert, extra_files):
|
||||
"""Run a local development server.
|
||||
|
||||
This server is for development purposes only. It does not provide
|
||||
|
|
@ -812,6 +816,7 @@ def run_command(info, host, port, reload, debugger, eager_loading, with_threads,
|
|||
use_debugger=debugger,
|
||||
threaded=with_threads,
|
||||
ssl_context=cert,
|
||||
extra_files=extra_files
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue