I'm using Flask-Script and I've got a manage.py
that looks like this.
from mypackage import create_app
from flask.ext.script import Manager
app = create_app()
manager = Manager(app)
if __name__ == '__main__':
manager.run()
I'll start my app with python manage.py runserver --debug
From within manage.py
, how can I find out that runserver was called with --debug
?
I've tried app.debug
but that returns False
and manager.get_options()
returns an empty list.