changeset 171:8701790360e0

Communicate the `debug` flag to Flask.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 28 Jan 2014 08:14:35 -0800
parents a24b8af2d4c3
children 27492ea65657
files wikked/commands/web.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wikked/commands/web.py	Tue Jan 28 08:14:10 2014 -0800
+++ b/wikked/commands/web.py	Tue Jan 28 08:14:35 2014 -0800
@@ -31,6 +31,9 @@
 
         use_dbg_and_rl = not ctx.args.production
 
+        if ctx.args.debug:
+            app.config['DEBUG'] = True
+
         app.wiki_params = ctx.params
         app.run(
                 host=ctx.args.host,