scientifichackers / ampy

MicroPython Tool - Utility to interact with a MicroPython board over a serial connection.
MIT License
723 stars 157 forks source link

cli: make all variables found from environment variables #109

Open mikebentley15 opened 3 years ago

mikebentley15 commented 3 years ago

Description

The python click module is pretty cool. I've not seen in before this project and I like it.

One feature of click is to make every option and parameter able to be specified by an environment variable.

https://click.palletsprojects.com/en/8.0.x/options/?highlight=auto_envvar_prefix

This was a very simple change to make, but I've found it quite nice, especially with the extra command-line arguments I've been giving the commands like in PR #107 and PR #108, among others that I have done in my fork.