diff --git a/flask/cli.py b/flask/cli.py index efc1733e..e59017dd 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -257,12 +257,14 @@ def locate_app(script_info, module_name, app_name, raise_if_not_found=True): def get_version(ctx, param, value): + from werkzeug import __version__ as werkzeug_version if not value or ctx.resilient_parsing: return - message = 'Flask %(version)s\nPython %(python_version)s' + message = 'Python %(python_version)s\nFlask %(version)s\nWerkzeug %(werkzeug_version)s' click.echo(message % { 'version': __version__, 'python_version': sys.version, + 'werkzeug_version': werkzeug_version, }, color=ctx.color) ctx.exit()