summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-10-17 14:44:21 -0500
committerTristan Sloughter <t@crashfast.com>2014-10-17 14:44:21 -0500
commit2930eb480deba84fbc3d5408c6134a68411a4651 (patch)
treeffb208901c64d3f07c63fb57a5d259a44a4adea9
parent4b7281effc83a359662d32d3ec840deadd2eaf22 (diff)
pass command as arg to run_aux for now
-rw-r--r--src/rebar3.erl2
-rw-r--r--test/rebar_compile_SUITE.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 64eed39..a1916f5 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -64,7 +64,7 @@ main(Args) ->
run(BaseState, Command) ->
_ = application:load(rebar),
BaseState1 = rebar_state:set(BaseState, task, Command),
- run_aux(BaseState1, []).
+ run_aux(BaseState1, [Command]).
%% ====================================================================
%% Internal functions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl
index f9f79af..7b17409 100644
--- a/test/rebar_compile_SUITE.erl
+++ b/test/rebar_compile_SUITE.erl
@@ -25,7 +25,7 @@ init_per_testcase(_, Config) ->
DataDir = proplists:get_value(data_dir, Config),
AppsDir = filename:join([DataDir, create_random_name("apps_dir1_")]),
ok = ec_file:mkdir_p(AppsDir),
- Verbosity = rebar3:log_level([]),
+ Verbosity = rebar3:log_level(),
rebar_log:init(command_line, Verbosity),
State = rebar_state:new(),
[{apps, AppsDir}, {state, State} | Config].