From 97f9b655f2de9074970ff6f614b143984f81fd8a Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Wed, 7 Oct 2020 23:07:26 +0000 Subject: [PATCH] Advertise DEBUG=1 in `rebar3 help` Since we switched to DIAGNOSTIC=1 in the crashdump, the only way to make DEBUG=1 discoverable (outside of docs) is in the help provider. --- src/rebar_prv_help.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rebar_prv_help.erl b/src/rebar_prv_help.erl index f34c755d..961b21d1 100644 --- a/src/rebar_prv_help.erl +++ b/src/rebar_prv_help.erl @@ -55,14 +55,15 @@ format_error(Reason) -> %% print help/usage string %% help(State) -> - ?CONSOLE("Rebar3 is a tool for working with Erlang projects.~n~n", []), + ?CONSOLE("Rebar3 is a tool for working with Erlang projects.~n", []), OptSpecList = rebar3:global_option_spec_list(), getopt:usage(OptSpecList, "rebar3", "", []), - ?CONSOLE("~nSeveral tasks are available:~n", []), + ?CONSOLE(" Set the environment variable DEBUG=1 for detailed output.~n", []), + ?CONSOLE("Several tasks are available:~n", []), providers:help(rebar_state:providers(State)), - ?CONSOLE("~nRun 'rebar3 help ' for details.~n~n", []). + ?CONSOLE("~nRun 'rebar3 help ' for details.", []). task_help(Namespace, Name, State) -> Providers = rebar_state:providers(State),