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!(config): change precedence to CLI flags > env vars > config file #678

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

rami3l
Copy link
Owner

@rami3l rami3l commented Jan 29, 2024

Closes #677 by fixing a config regression introduced in #537.

We cannot use figment's defaults for CLI flags/args, since they are a bit special: a flag/arg is considered present only when it's set to a truthy value. Thus, a manually-implemented .join() method is still required.

@rami3l rami3l force-pushed the fix/cfg-precedence branch from e97f8a4 to 5318c13 Compare January 29, 2024 05:22
@rami3l rami3l changed the title fix!(config): change precedence to CLI flags > env vars > config file fix(config): change precedence to CLI flags > env vars > config file Jan 29, 2024
@rami3l rami3l changed the title fix(config): change precedence to CLI flags > env vars > config file fix!(config): change precedence to CLI flags > env vars > config file Jan 29, 2024
@rami3l rami3l merged commit 940389e into master Jan 29, 2024
18 checks passed
@rami3l rami3l deleted the fix/cfg-precedence branch January 29, 2024 06:28
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.

[Bug] --using/--pm don't do anything if overridden by a config file
1 participant