tkuchiki / alp

Access Log Profiler
MIT License
670 stars 34 forks source link

fix overwriting of config by default value #79

Closed saza-ku closed 1 year ago

saza-ku commented 1 year ago

Options set by config file are overwritten by the options' default value.

This PR fixes the bug by using viper. The config file sets the options by viper.BindPFlag.

The priority are here: command line arguments > config file > default value

tkuchiki commented 1 year ago

Thank you! I will check it later.

tkuchiki commented 1 year ago

Released https://github.com/tkuchiki/alp/releases/tag/v1.0.16 !