Skip to content

fix overwriting of config by default value#79

Merged
tkuchiki merged 2 commits intotkuchiki:mainfrom
saza-ku:fix/config
Sep 2, 2023
Merged

fix overwriting of config by default value#79
tkuchiki merged 2 commits intotkuchiki:mainfrom
saza-ku:fix/config

Conversation

@saza-ku
Copy link
Contributor

@saza-ku saza-ku commented Aug 31, 2023

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
Copy link
Owner

Thank you!
I will check it later.

@tkuchiki tkuchiki self-requested a review August 31, 2023 23:27
Copy link
Owner

@tkuchiki tkuchiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tkuchiki tkuchiki merged commit 4b0eab1 into tkuchiki:main Sep 2, 2023
@tkuchiki
Copy link
Owner

tkuchiki commented Sep 2, 2023

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

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.

2 participants