autonity / autonity-cli

Command line interface to interact with Autonity
MIT License
11 stars 10 forks source link

Make configuration consistent #167

Closed szemate closed 1 month ago

szemate commented 2 months ago

At the moment the configuration of the tool is quite ad-hoc:

Rework parameter handling the following way:

with the following order of precedence:

command line option > environment variable > config file

Also rewrite help messages to be consistent in style.

A new command line option --config is added to every command where the location of the config file can be specified; if not specified the config file is searched for like before.