Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI configuration flags. #2

Merged
merged 1 commit into from
Mar 20, 2019
Merged

Add CLI configuration flags. #2

merged 1 commit into from
Mar 20, 2019

Conversation

deepbrook
Copy link
Contributor

Added a simple argparser object to configure
the geth exporter using the commandline.

It overrides default values and settings in a
yml file (if present), but only does so for
explicitly stated config options. If the
option is not passed, no overriding takes
place and the usual yml>defaults order
takes place.

This is especially useful to us, since we tend
to run the exporter in docker, and mounting
a volume for a config file vs just passing the
config as cli flags to the container is simpler
for our deployment procedure.

Added a simple argparser object to confiure
the geth exporter using the commandline.

It overrides default values and settings in a
yml file (if present), but only does so for
explicitly stated config options. If the
option is not passed, no overriding takes
place and the usual yml>defaults order
takes place.
@tlex tlex merged commit 44fd2bd into tlex:master Mar 20, 2019
@tlex
Copy link
Owner

tlex commented Mar 20, 2019

Thanks for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants