Skip to content

Commit

Permalink
Provide more clear flask -e, --env-file flag desription
Browse files Browse the repository at this point in the history
  • Loading branch information
differencialx committed Jul 19, 2024
1 parent 5353f30 commit 5932b84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:`stub`

Version 3.0.2
-------------
Expand Down
7 changes: 6 additions & 1 deletion src/flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5932b84

Please sign in to comment.