aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-12-04 14:20:17 -0800
committerJordan Wilberding <[email protected]>2015-12-04 14:20:17 -0800
commit2dd569d09cb1b3e247340af4d6082182fc1dc3dc (patch)
tree056357199a8ae94e472c5956e14827fd74503e48 /src
parent30b31d0742209769e6a05b310dd09b39d3ac0712 (diff)
parenta64baad259d4ebc635723d3f92d0eb0560e22edb (diff)
downloadrelx-2dd569d09cb1b3e247340af4d6082182fc1dc3dc.tar.gz
relx-2dd569d09cb1b3e247340af4d6082182fc1dc3dc.tar.bz2
relx-2dd569d09cb1b3e247340af4d6082182fc1dc3dc.zip
Merge pull request #421 from tsloughter/config_cli_order
replace last, not first when merging cli and config terms
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 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" ->