summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-10-10 11:52:58 -0500
committerTristan Sloughter <t@crashfast.com>2014-10-10 11:53:14 -0500
commit587e57c03c21531dbffc0932a0a8bf9e46fa413c (patch)
tree45495389b9fa28a351235cf8502797004aca619d
parentb20680304d02a10babff15ff69a78a816077fa3c (diff)
fix help task
-rw-r--r--src/rebar_prv_help.erl4
-rw-r--r--src/rebar_prv_version.erl1
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}.