From 0570393bc471d72eca128ded5edc868f13a87b0a Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 22 Jan 2018 11:07:37 +0800 Subject: [PATCH] Update cli help for FLASK_ENV --- flask/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flask/cli.py b/flask/cli.py index 52a4f596..76ca125d 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -731,12 +731,12 @@ A general utility script for Flask applications. Provides commands from Flask, extensions, and the application. Loads the application defined in the FLASK_APP environment variable, or from a wsgi.py -file. Debug mode can be controlled with the FLASK_DEBUG -environment variable. +file. Setting the FLASK_ENV environment variable to 'development' will enable +debug mode. \b {prefix}{cmd} FLASK_APP=hello.py - {prefix}{cmd} FLASK_DEBUG=1 + {prefix}{cmd} FLASK_ENV=development {prefix}flask run """.format( cmd='export' if os.name == 'posix' else 'set',