aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-12-04 15:47:51 -0600
committerTristan Sloughter <[email protected]>2015-12-04 15:47:51 -0600
commit36a33887bacab3778777dec1bc2008dbd773dee3 (patch)
tree3bebc327c1c0c99fa7cca6c8fdd3105de9c01dbd /src
parent365d3e7993042b068582b2c7555baa08ff854be2 (diff)
downloadrelx-36a33887bacab3778777dec1bc2008dbd773dee3.tar.gz
relx-36a33887bacab3778777dec1bc2008dbd773dee3.tar.bz2
relx-36a33887bacab3778777dec1bc2008dbd773dee3.zip
don't reverse the config terms if there are cli args
Diffstat (limited to 'src')
-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}))