From 390bdbcc6d93e741cfc7afd67caf6c1bf7163aa6 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 11 Oct 2014 19:38:49 -0500 Subject: fix print help for task --- src/rebar_prv_help.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_help.erl b/src/rebar_prv_help.erl index 33bfa2c..690ca7d 100644 --- a/src/rebar_prv_help.erl +++ b/src/rebar_prv_help.erl @@ -36,10 +36,11 @@ do(State) -> {Args, _} = rebar_state:command_parsed_args(State), case proplists:get_value(help_task, Args, undefined) of undefined -> - help(State); + help(State), + {ok, State}; Name -> Providers = rebar_state:providers(State), - case providers:get_provider(Name, Providers) of + case providers:get_provider(list_to_atom(Name), Providers) of [] -> {error, io_lib:format("Unknown task ~s", [Name])}; Provider -> -- cgit v1.1