diff options
-rw-r--r-- | src/rebar_prv_help.erl | 4 | ||||
-rw-r--r-- | src/rebar_prv_version.erl | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/rebar_prv_help.erl b/src/rebar_prv_help.erl index 9c9bbde..4b843ca 100644 --- a/src/rebar_prv_help.erl +++ b/src/rebar_prv_help.erl @@ -39,10 +39,10 @@ do(State) -> %% help(State) -> ?CONSOLE("Rebar is a tool for working with Erlang projects.~n~n", []), - OptSpecList = rebar3:option_spec_list(), + OptSpecList = rebar3:global_option_spec_list(), getopt:usage(OptSpecList, "rebar", "", []), ?CONSOLE("~nSeveral tasks are available:~n", []), - providers:help(State), + providers:help(rebar_state:providers(State)), ?CONSOLE("~nRun 'rebar help <TASK>' for details.~n~n", []). diff --git a/src/rebar_prv_version.erl b/src/rebar_prv_version.erl index c02f851..f158b6d 100644 --- a/src/rebar_prv_version.erl +++ b/src/rebar_prv_version.erl @@ -32,6 +32,5 @@ init(State) -> -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. do(State) -> - io:format("REST ~p~n", [rebar_state:command_args(State)]), rebar3:version(), {ok, State}. |