diff options
author | Tristan Sloughter <[email protected]> | 2013-10-12 12:29:57 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2013-10-12 12:29:57 -0500 |
commit | f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41 (patch) | |
tree | 4ef0d3c0b573b0d0c8459010fc37750c7bb6eba0 /src/rlx_cmd_args.erl | |
parent | 51d787c7e3da7cbfa092b8455706911749f26d45 (diff) | |
download | relx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.tar.gz relx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.tar.bz2 relx-f50f63f1cb504fc9af4f060b7e7d6c5f1c816d41.zip |
add overlay_vars command line arg
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r-- | src/rlx_cmd_args.erl | 8 |
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(). |