rduplain/flask-script — pull request #34 by ento (2012-03-23 15:14:11+00:00)
Title: Create app as early as possible to allow commands that depend on the app...

... to glean options from it. Otherwise, command parsers of those commands will fail or return inappropriate results.

I've actually come across this problem when trying to use Flask-Celery with Flask-Script. Flask-Celery's [celeryd command tries to get options dynamically from the current celery app instance.](https://github.com/ask/flask-celery/blob/5407cfde604928acf92513fd26a4a838eef4c337/flask_celery.py#L103) Which in turn is typically created by the create_app factory.

No new tests added, existing tests passed.