streamr-dev / network

Monorepo containing all the main components of Streamr Network.
574 stars 38 forks source link

fix(cli-tools): `--env` flag overrides config file #2834

Closed teogeb closed 3 weeks ago

teogeb commented 3 weeks ago

Now--env flag overrides all environment-specific config options which are defined in a config file. This is a good approach as command line arguments should take precedence over the implicit config files (i.e. the ~/streamr/config/default.jsonfile )

Same logic is applied also when both --env and --config command line arguments are given.

Future improvements