Update cli.py

This commit is contained in:
Chakib Fettal 2024-08-08 14:59:12 +02:00 committed by GitHub
parent 8a6cdf1e2a
commit 6cf0136e18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,10 +505,15 @@ _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. 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,
)
class FlaskGroup(AppGroup): class FlaskGroup(AppGroup):