From 587e57c03c21531dbffc0932a0a8bf9e46fa413c Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 10 Oct 2014 11:52:58 -0500 Subject: [PATCH] fix help task --- src/rebar_prv_help.erl | 4 ++-- 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 9c9bbde0..4b843cac 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 ' for details.~n~n", []). diff --git a/src/rebar_prv_version.erl b/src/rebar_prv_version.erl index c02f8513..f158b6dd 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}.