aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-12-04 14:06:14 -0800
committerJordan Wilberding <[email protected]>2015-12-04 14:06:14 -0800
commit30b31d0742209769e6a05b310dd09b39d3ac0712 (patch)
tree3bebc327c1c0c99fa7cca6c8fdd3105de9c01dbd
parent0ae1b39a8919a834ad1499ae2fd343a5121f2723 (diff)
parent36a33887bacab3778777dec1bc2008dbd773dee3 (diff)
downloadrelx-30b31d0742209769e6a05b310dd09b39d3ac0712.tar.gz
relx-30b31d0742209769e6a05b310dd09b39d3ac0712.tar.bz2
relx-30b31d0742209769e6a05b310dd09b39d3ac0712.zip
Merge pull request #420 from tsloughter/config_cli_order
don't reverse the config terms if there are cli args
-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 62a0cdb..2e16ab3 100644
--- a/src/rlx_config.erl
+++ b/src/rlx_config.erl
@@ -313,7 +313,7 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
MergedValue = lists:umerge([Value, Value2]),
merge_configs(CliTerms, lists:keyreplace(Key, 1, ConfigTerms, {Key, MergedValue}));
false ->
- merge_configs(CliTerms, [{Key, Value} | ConfigTerms])
+ merge_configs(CliTerms, ConfigTerms++[{Key, Value}])
end;
_ ->
merge_configs(CliTerms, lists:keystore(Key, 1, ConfigTerms, {Key, Value}))