From 8dbb2963b299ebbef2bd21270ae203c1eabf9e0e Mon Sep 17 00:00:00 2001 From: Randall Leeds Date: Mon, 26 Dec 2016 18:12:17 -0800 Subject: [PATCH] allow --reload without any value (#1416) The documentation suggests that the value is optional, but without this change it is not. --- gunicorn/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gunicorn/config.py b/gunicorn/config.py index f5b89cff..d6dec5fb 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -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.