Environment variables in CLI
name: Feature Request
about: Suggest an idea for this project
Is your feature request related to a problem? Please describe.
Click has a feature which allows command-line arguments to be passed directly via environment variables (https://click.palletsprojects.com/en/7.x/options/#values-from-environment-variables).We tried to add this in !62 (merged), but couldn't get it working.
# code previously in !62
def _run_cli():
sys.exit(cli(auto_envvar_prefix="NETCDF_SCM")) # pragma: no cover
if __name__ == "__main__":
_run_cli() # pragma: no cover
Describe the solution you'd like
It would be great to add this environmental variable support in here.
Additional context
Add any other context or screenshots about the feature request here.