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/rlx_cmd_args.erl | |
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/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 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; |