diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-08-15 12:48:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-15 12:48:18 -0700 |
commit | 7c9fc43e6c317bc724d983897afff0f5d47e1543 (patch) | |
tree | 3796af862f75c0a655356c988fa7379a3ff28343 | |
parent | 3c5807fc033af8cc34200d44be7af8e22de8b9f2 (diff) | |
parent | 4c2873d213ccdb4182f21c7179038897a66210b2 (diff) |
Merge pull request #1300 from raek/master
Print error on too many help arguments
-rw-r--r-- | src/rebar_prv_help.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_prv_help.erl b/src/rebar_prv_help.erl index c028264..75cc609 100644 --- a/src/rebar_prv_help.erl +++ b/src/rebar_prv_help.erl @@ -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(). |