I'd removed a hardcoded 'app.debug = True' in
bdbfab1f (nmhive.py: Use
notmuch behind GET /tags, 2014-09-21) because it conflicted with a
global, read/write lock. However, in
a98096f1 (nmhive.py: Use
per-request database connections, 2014-09-21) I dropped the global
lock, so enabling debuging is feasible again.
parser.add_argument(
'-p', '--port', type=int, default=5000,
help='The port to listen on.')
+ parser.add_argument(
+ '-d', '--debug', type=bool, default=False,
+ help='Run Flask in debug mode (e.g. show errors).')
args = parser.parse_args()
+ app.debug = args.debug
app.run(host=args.host, port=args.port)