Provide more clear flask -e, --env-file flag desription
This commit is contained in:
parent
5353f306fe
commit
2ed9dd0aec
2 changed files with 7 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ Released 2024-04-07
|
||||||
:issue:`5448`
|
:issue:`5448`
|
||||||
- Don't initialize the ``cli`` attribute in the sansio scaffold, but rather in
|
- Don't initialize the ``cli`` attribute in the sansio scaffold, but rather in
|
||||||
the ``Flask`` concrete class. :pr:`5270`
|
the ``Flask`` concrete class. :pr:`5270`
|
||||||
|
- Provide more clear ``flask`` ``-e, --env-file`` flag desription. :pr:`5532`
|
||||||
|
|
||||||
Version 3.0.2
|
Version 3.0.2
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -504,7 +504,12 @@ def _env_file_callback(
|
||||||
_env_file_option = click.Option(
|
_env_file_option = click.Option(
|
||||||
["-e", "--env-file"],
|
["-e", "--env-file"],
|
||||||
type=click.Path(exists=True, dir_okay=False),
|
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,
|
is_eager=True,
|
||||||
expose_value=False,
|
expose_value=False,
|
||||||
callback=_env_file_callback,
|
callback=_env_file_callback,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue