Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename no_reload #4703

Merged
merged 1 commit into from Mar 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions superset/cli.py
Expand Up @@ -36,7 +36,7 @@ def init():
'-d', '--debug', action='store_true',
help='Start the web server in debug mode')
@manager.option(
'-n', '--no-reload', action='store_false', dest='no_reload',
'-n', '--no-reload', action='store_false', dest='use_reloader',
default=config.get('FLASK_USE_RELOAD'),
help="Don't use the reloader in debug mode")
@manager.option(
Expand All @@ -57,7 +57,7 @@ def init():
help='Path to a UNIX socket as an alternative to address:port, e.g. '
'/var/run/superset.sock. '
'Will override the address and port values.')
def runserver(debug, no_reload, address, port, timeout, workers, socket):
def runserver(debug, use_reloader, address, port, timeout, workers, socket):
"""Starts a Superset web server."""
debug = debug or config.get('DEBUG')
if debug:
Expand All @@ -73,7 +73,7 @@ def runserver(debug, no_reload, address, port, timeout, workers, socket):
port=int(port),
threaded=True,
debug=True,
use_reloader=no_reload)
use_reloader=use_reloader)
else:
addr_str = ' unix:{socket} ' if socket else' {address}:{port} '
cmd = (
Expand Down