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

fix overwriting of config by default value #79

Merged
merged 2 commits into from
Sep 2, 2023

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
1 check passed
@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