aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index 2a0f573..e360ab8 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -246,7 +246,13 @@ create_root_dir(Opts, Acc) ->
{ok, rlx_state:cmd_args()} | relx:error().
create_disable_default_libs(Opts, Acc) ->
Def = proplists:get_value(default_libs, Opts, true),
- create_upfrom(Opts, [{default_libs, Def} | Acc]).
+ create_overlay_vars(Opts, [{default_libs, Def} | Acc]).
+
+-spec create_overlay_vars([getopt:option()], rlx_state:cmd_args()) ->
+ {ok, rlx_state:cmd_args()} | relx:error().
+create_overlay_vars(Opts, Acc) ->
+ OverlayVars = proplists:get_all_values(overlay_vars, Opts),
+ create_upfrom(Opts, [{overlay_vars, OverlayVars} | Acc]).
-spec create_upfrom([getopt:option()], rlx_state:cmd_args()) ->
{ok, rlx_state:cmd_args()} | relx:error().