From 2930eb480deba84fbc3d5408c6134a68411a4651 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 17 Oct 2014 14:44:21 -0500 Subject: pass command as arg to run_aux for now --- src/rebar3.erl | 2 +- test/rebar_compile_SUITE.erl | 2 +- 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]. -- cgit v1.1