From 083d54211eddd76980a285bd63c01e685c330c82 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Tue, 4 Nov 2014 10:52:42 -0600 Subject: include relx options in tar command --- src/rebar_prv_tar.erl | 8 +++++--- 1 file 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}. -- cgit v1.1