summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-10-11 19:38:49 -0500
committerTristan Sloughter <t@crashfast.com>2014-10-11 19:38:49 -0500
commit390bdbcc6d93e741cfc7afd67caf6c1bf7163aa6 (patch)
treeb04abf17b7103bf99eb6671de34ac1ba27d55833
parent3b5f22f0663c545117692dfa88d0a6fc66235ed6 (diff)
fix print help for task
-rw-r--r--src/rebar_prv_help.erl5
1 files changed, 3 insertions, 2 deletions
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 ->