summaryrefslogtreecommitdiff
path: root/src/rebar_config.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_config.erl')
-rw-r--r--src/rebar_config.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl
index f9813c2..3302d5b 100644
--- a/src/rebar_config.erl
+++ b/src/rebar_config.erl
@@ -27,7 +27,8 @@
-export([new/0, new/1,
get/3, get_list/3,
delete/2,
- set_global/2, get_global/2]).
+ set_global/2, get_global/2,
+ is_verbose/0]).
-include("rebar.hrl").
@@ -79,6 +80,14 @@ get_global(Key, Default) ->
Value
end.
+is_verbose() ->
+ case get_global(verbose, "0") of
+ "1" ->
+ true;
+ _ ->
+ false
+ end.
+
%% ===================================================================
%% Internal functions