aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rlx_config.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl
index 2e16ab3..d82757b 100644
--- a/src/rlx_config.erl
+++ b/src/rlx_config.erl
@@ -316,7 +316,7 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
merge_configs(CliTerms, ConfigTerms++[{Key, Value}])
end;
_ ->
- merge_configs(CliTerms, lists:keystore(Key, 1, ConfigTerms, {Key, Value}))
+ merge_configs(CliTerms, lists:reverse(lists:keystore(Key, 1, lists:reverse(ConfigTerms), {Key, Value})))
end.
parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" ->