diff options
author | Tristan Sloughter <[email protected]> | 2013-10-25 07:43:44 -0700 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2013-10-25 07:43:44 -0700 |
commit | d10c5f544741367feae2c30d0e9738ef5edacdf5 (patch) | |
tree | 07aac418cda58a03b33d9a7773cb77e9d3c89277 | |
parent | e59d0577ac53bddf068a85645cc531378a88751f (diff) | |
parent | 4b422ee64b29073e874c9ed2e26999a269f64a58 (diff) | |
download | relx-d10c5f544741367feae2c30d0e9738ef5edacdf5.tar.gz relx-d10c5f544741367feae2c30d0e9738ef5edacdf5.tar.bz2 relx-d10c5f544741367feae2c30d0e9738ef5edacdf5.zip |
Merge pull request #81 from MSch/master
relx ignores -d (and --dev-mode) options
-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, []), |