diff options
author | Tristan Sloughter <[email protected]> | 2015-02-01 09:16:17 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-02-01 09:34:55 -0600 |
commit | ae06e452f651e252c7c0762f923efe2a214c8a9b (patch) | |
tree | 7beceb6a6b8af68f5e06965badf65cf63d3802f0 /src/rlx_cmd_args.erl | |
parent | 2eda48dd5f69f617a3e4b6f7de2d6d7c12d4e820 (diff) | |
download | relx-ae06e452f651e252c7c0762f923efe2a214c8a9b.tar.gz relx-ae06e452f651e252c7c0762f923efe2a214c8a9b.tar.bz2 relx-ae06e452f651e252c7c0762f923efe2a214c8a9b.zip |
fix target ordering to be the same as the user entered
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r-- | src/rlx_cmd_args.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl index 20ea3a9..2039b43 100644 --- a/src/rlx_cmd_args.erl +++ b/src/rlx_cmd_args.erl @@ -102,7 +102,7 @@ handle_config(Opts, Targets, CommandLineConfig) -> end end. --spec convert_targets([string()]) -> {ok, release | relup} | relx:error(). +-spec convert_targets([string()]) -> {ok, [rlx_state:action()]} | relx:error(). convert_targets(Targets) -> convert_targets(Targets, []). @@ -111,7 +111,7 @@ convert_targets(Targets) -> convert_targets([], []) -> {ok, [release]}; convert_targets([], Acc) -> - {ok, Acc}; + {ok, lists:reverse(Acc)}; convert_targets(["release" | T], Acc) -> convert_targets(T, [release | Acc]); convert_targets(["relup" | T], Acc) -> |