diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_utils.erl | 9 |
1 files changed, 8 insertions, 1 deletions
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) -> |