diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 113dd21..199acdf 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -247,12 +247,19 @@ get_deprecated_global(OldOpt, NewOpt, When) -> New end. -deprecated(Old, New, Opts, When) -> +deprecated(Old, New, Opts, When) when is_list(Opts) -> case lists:member(Old, Opts) of true -> deprecated(Old, New, When); false -> ok + end; +deprecated(Old, New, Config, When) -> + case rebar_config:get(Config, Old, undefined) of + undefined -> + ok; + _ -> + deprecated(Old, New, When) end. deprecated(Old, New, When) ->