diff options
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 66cd7e2..a39e263 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -45,6 +45,7 @@ vcs_vsn/3, deprecated/3, deprecated/4, get_deprecated_global/4, get_deprecated_global/5, + get_experimental_global/3, get_deprecated_list/4, get_deprecated_list/5, get_deprecated_local/4, get_deprecated_local/5, delayed_halt/1, @@ -230,6 +231,16 @@ get_deprecated_global(Config, OldOpt, NewOpt, Default, When) -> New end. +get_experimental_global(Config, Opt, Default) -> + Val = rebar_config:get_global(Config, Opt, Default), + case Val of + Default -> + Default; + Val -> + ?CONSOLE("NOTICE: Using experimental option '~p'~n", [Opt]), + Val + end. + get_deprecated_list(Config, OldOpt, NewOpt, When) -> get_deprecated_list(Config, OldOpt, NewOpt, undefined, When). |