diff options
author | Luis Rascao <[email protected]> | 2017-01-04 19:21:33 +0000 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2017-01-28 00:40:46 +0000 |
commit | 4314d778176225b6caecd354d6fddbdc5a1f7e17 (patch) | |
tree | bf76a452163442bb5f26642b29f21fbe6bdc180e /src/rlx_cmd_args.erl | |
parent | 2640387cf1ba24682690b5d6f488df3d8ded5501 (diff) | |
download | relx-4314d778176225b6caecd354d6fddbdc5a1f7e17.tar.gz relx-4314d778176225b6caecd354d6fddbdc5a1f7e17.tar.bz2 relx-4314d778176225b6caecd354d6fddbdc5a1f7e17.zip |
Expose warnings as errors option
Obtained from command line and saved in the state
to be used on situations where we want to error out on
warnings explicitly.
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r-- | src/rlx_cmd_args.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl index 7f3f39b..b20344c 100644 --- a/src/rlx_cmd_args.erl +++ b/src/rlx_cmd_args.erl @@ -282,6 +282,9 @@ create(include_erts, Opts) -> Erts when is_list(Erts) -> {include_erts, Erts} end; +create(warnings_as_errors, Opts) -> + WarningsAsErrors = proplists:get_value(warnings_as_errors, Opts, false), + {warnings_as_errors, WarningsAsErrors}; create(_, _) -> []. |