diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 2d82040..4571d17 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -41,7 +41,7 @@ find_executable/1, prop_check/3, expand_code_path/0, - deprecated/4, deprecated/5]). + deprecated/5]). -include("rebar.hrl"). @@ -264,16 +264,12 @@ emulate_escript_foldl(Fun, Acc, File) -> deprecated(Key, Old, New, Opts, When) -> case lists:member(Old, Opts) of true -> - deprecated(Key, Old, New, When); + io:format( + <<"WARNING: deprecated ~p option used~n" + "Option '~p' has been deprecated~n" + "in favor of '~p'.~n" + "'~p' will be removed ~s.~n~n">>, + [Key, Old, New, Old, When]); false -> ok end. - -deprecated(Key, Old, New, When) -> - io:format( - << - "WARNING: deprecated ~p option used~n" - "Option '~p' has been deprecated~n" - "in favor of '~p'.~n" - "'~p' will be removed ~s.~n~n" - >>, [Key, Old, New, Old, When]).