summaryrefslogtreecommitdiff
path: root/src/rebar_prv_new.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_prv_new.erl')
-rw-r--r--src/rebar_prv_new.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl
index e5233cd..528c95e 100644
--- a/src/rebar_prv_new.erl
+++ b/src/rebar_prv_new.erl
@@ -31,7 +31,11 @@ do(State) ->
case rebar_state:command_args(State) of
[TemplateName] ->
Template = list_to_atom(TemplateName),
- rebar_templater:new(Template, State),
+ rebar_templater:new(Template, "", State),
+ {ok, State};
+ [TemplateName, DirName] ->
+ Template = list_to_atom(TemplateName),
+ rebar_templater:new(Template, DirName, State),
{ok, State};
[] ->
{ok, State}