Provide more clear flask -e, --env-file flag desription

This commit is contained in:
differencialx 2024-07-19 03:11:37 +03:00
parent 5353f306fe
commit 2ed9dd0aec
2 changed files with 7 additions and 2 deletions

View file

@ -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
-------------

View file

@ -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,