Browse Source

Fixes issue 2824

pull/2825/head
Dilan Coss 7 years ago
parent
commit
dc16c7a4f1
  1. 4
      flask/cli.py

4
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()

Loading…
Cancel
Save