diff options
author | Martin Schùˆrrer <[email protected]> | 2013-10-25 16:33:06 +0200 |
---|---|---|
committer | Martin Schùˆrrer <[email protected]> | 2013-10-25 16:33:06 +0200 |
commit | 4b422ee64b29073e874c9ed2e26999a269f64a58 (patch) | |
tree | 07aac418cda58a03b33d9a7773cb77e9d3c89277 /src | |
parent | e59d0577ac53bddf068a85645cc531378a88751f (diff) | |
download | relx-4b422ee64b29073e874c9ed2e26999a269f64a58.tar.gz relx-4b422ee64b29073e874c9ed2e26999a269f64a58.tar.bz2 relx-4b422ee64b29073e874c9ed2e26999a269f64a58.zip |
Don't ignore -d command line argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/rlx_cmd_args.erl | 8 | ||||
-rw-r--r-- | src/rlx_state.erl | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl index d6bf0bb..f592474 100644 --- a/src/rlx_cmd_args.erl +++ b/src/rlx_cmd_args.erl @@ -300,9 +300,15 @@ create_paths(Opts, Acc) -> Error; ok -> code:add_pathsa([filename:absname(Path) || Path <- Dirs]), - {ok, Acc} + create_dev_mode(Opts, Acc) end. +-spec create_dev_mode([getopt:option()], rlx_state:cmd_args()) -> + {ok, rlx_state:cmd_args()} | relx:error(). +create_dev_mode(Opts, Acc) -> + DevMode = proplists:get_value(dev_mode, Opts, false), + {ok, [{dev_mode, DevMode} | Acc]}. + -spec check_lib_dirs([string()]) -> ok | relx:error(). check_lib_dirs([]) -> ok; diff --git a/src/rlx_state.erl b/src/rlx_state.erl index 4e76a3f..bc4af5b 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -128,6 +128,7 @@ new(PropList, Targets) output_dir=proplists:get_value(output_dir, PropList, ""), lib_dirs=[to_binary(Dir) || Dir <- proplists:get_value(lib_dirs, PropList, [])], config_file=proplists:get_value(config, PropList, undefined), + dev_mode = proplists:get_value(dev_mode, PropList), actions = Targets, caller = Caller, goals=proplists:get_value(goals, PropList, []), |