Browse Source

Merge pull request #1300 from raek/master

Print error on too many help arguments
pull/1308/head
alisdair sullivan 8 years ago
committed by GitHub
parent
commit
7c9fc43e6c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/rebar_prv_help.erl

+ 4
- 1
src/rebar_prv_help.erl View File

@ -41,7 +41,10 @@ do(State) ->
[Name] -> % default namespace
task_help(default, list_to_atom(Name), State);
[Namespace, Name] ->
task_help(list_to_atom(Namespace), list_to_atom(Name), State)
task_help(list_to_atom(Namespace), list_to_atom(Name), State);
_ ->
{error, "Too many arguments given. " ++
"Usage: rebar3 help [<namespace>] <task>"}
end.
-spec format_error(any()) -> iolist().

Loading…
Cancel
Save