aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rlx_cmd_args.erl4
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) ->