diff options
-rw-r--r-- | src/rebar_prv_tar.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rebar_prv_tar.erl b/src/rebar_prv_tar.erl index 03117ff..ec1b8a3 100644 --- a/src/rebar_prv_tar.erl +++ b/src/rebar_prv_tar.erl @@ -27,16 +27,18 @@ init(State) -> {example, "rebar tar"}, {short_desc, "Tar archive of release built of project."}, {desc, ""}, - {opts, []}])), + {opts, relx:opt_spec_list()}])), {ok, State1}. -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. do(State) -> + Options = rebar_state:command_args(State), + AllOptions = string:join(["release", "tar" | Options], " "), case rebar_state:get(State, relx, []) of [] -> - relx:main(["release", "tar"]); + relx:main(AllOptions); Config -> - relx:main([{config, Config}], ["release", "tar"]) + relx:main([{config, Config}], AllOptions) end, {ok, State}. |