diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-10-10 18:34:59 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-10-10 18:34:59 -0500 |
commit | f77e5659625eedb919f0c5d477da79b3ecaa32f0 (patch) | |
tree | c3d1f8f7037aa2a5cb4de90237e2e8d81883e850 /src | |
parent | 26a53f323b2238f5d0b4988db6bae5c5ba384eab (diff) |
use providers help/2
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_help.erl | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/rebar_prv_help.erl b/src/rebar_prv_help.erl index 5b9b8ca..f3302c3 100644 --- a/src/rebar_prv_help.erl +++ b/src/rebar_prv_help.erl @@ -39,15 +39,7 @@ do(State) -> help(State); Name -> Providers = rebar_state:providers(State), - Provider = providers:get_provider(list_to_atom(Name), Providers), - Opts = providers:opts(Provider), - case providers:desc(Provider) of - Desc when length(Desc) > 0 -> - io:format(Desc++"~n~n"); - _ -> - ok - end, - getopt:usage(Opts, "rebar "++Name, "", []) + providers:help(Name, Providers) end, {ok, State}. |