diff --git a/CHANGES.rst b/CHANGES.rst index 082c7065d5..5a5ca2be50 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,7 +8,7 @@ Released 2024-04-07 :issue:`5448` - Don't initialize the ``cli`` attribute in the sansio scaffold, but rather in the ``Flask`` concrete class. :pr:`5270` - +- Provide more clear ``flask`` ``-e, --env-file`` flag desription. :pr:`5532` Version 3.0.2 ------------- diff --git a/src/flask/cli.py b/src/flask/cli.py index ecb292a01e..9d86d3dd1c 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -504,7 +504,12 @@ def _env_file_callback( _env_file_option = click.Option( ["-e", "--env-file"], type=click.Path(exists=True, dir_okay=False), - help="Load environment variables from this file. python-dotenv must be installed.", + help=( + "Load environment variables from this FILE in addition to environment " + "variables from '.env' and '.flaskenv' files. Does not override " + "environment variables from '.env' and '.flaskenv'. " + "python-dotenv must be installed." + ), is_eager=True, expose_value=False, callback=_env_file_callback,