Description
This PR adds a way to set CLI args with an environment variable.
The syntax for the envvars are BITCOIND_<ARGNAME>=<VALUE>
E.g BITCOIND_DATADIR=/home/emil/bitcoin/
Console arguments override setted envvars.
The envvars are always uppercase.
Testing
Set some envvars On Unix:
BITCOIND_DATADIR=/path/to/your/datadir
BITCOIND_LANG=en
export BITCOIND_DATADIR
export BITCOIND_LANG
./bitcoin-qt
This will start Bitcoin-Qt using the datadir path with an english overlay.
Notes
This also adds a function to ArgsManager to get all added args in a vector.