瀏覽代碼

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 年之前
父節點
當前提交
97f9b655f2
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      src/rebar_prv_help.erl

+ 4
- 3
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 <TASK>' for details.~n~n", []).
?CONSOLE("~nRun 'rebar3 help <TASK>' for details.", []).
task_help(Namespace, Name, State) ->
Providers = rebar_state:providers(State),

Loading…
取消
儲存