From 4314d778176225b6caecd354d6fddbdc5a1f7e17 Mon Sep 17 00:00:00 2001 From: Luis Rascao Date: Wed, 4 Jan 2017 19:21:33 +0000 Subject: 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. --- src/rlx_cmd_args.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rlx_cmd_args.erl') 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(_, _) -> []. -- cgit v1.2.3