allow --reload without any value (#1416)

The documentation suggests that the value is optional, but without
this change it is not.
This commit is contained in:
Randall Leeds 2016-12-26 18:12:17 -08:00 committed by GitHub
parent ee47b0030d
commit 8dbb2963b2

View File

@ -822,8 +822,10 @@ class Reload(Setting):
section = 'Debugging'
cli = ['--reload']
validator = validate_reloader
const = 'auto'
default = 'off'
meta = 'RELOADER_TYPE'
nargs = '?'
desc = '''\
Restart workers when code changes.