mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Extend rebar_utils:deprecated
This commit is contained in:
parent
a176db6937
commit
ba538094ba
1 changed files with 8 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue