Skip to content

Commit

Permalink
Rename no_reload (#4703)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored and mistercrunch committed Mar 28, 2018
1 parent 485b0c2 commit 7e1b6b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/cli.py
Original file line number Diff line number Diff line change
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

0 comments on commit 7e1b6b7

Please sign in to comment.