Browse Source

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.
pull/2393/head
Fred Hebert 4 years ago
parent
commit
97f9b655f2
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/rebar_prv_help.erl

+ 4
- 3
src/rebar_prv_help.erl View File

@ -55,14 +55,15 @@ format_error(Reason) ->
%% print help/usage string %% print help/usage string
%% %%
help(State) -> 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(), OptSpecList = rebar3:global_option_spec_list(),
getopt:usage(OptSpecList, "rebar3", "", []), 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)), providers:help(rebar_state:providers(State)),
?CONSOLE("~nRun 'rebar3 help <TASK>' for details.~n~n", []).
?CONSOLE("~nRun 'rebar3 help <TASK>' for details.", []).
task_help(Namespace, Name, State) -> task_help(Namespace, Name, State) ->
Providers = rebar_state:providers(State), Providers = rebar_state:providers(State),

Loading…
Cancel
Save