diff options
Diffstat (limited to 'src/rebar.erl')
-rw-r--r-- | src/rebar.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index 8b9758f..2284afe 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -166,15 +166,15 @@ run_aux(BaseConfig, Commands) -> {error,{already_started,crypto}} -> ok end, - %% Convert command strings to atoms - CommandAtoms = [list_to_atom(C) || C <- Commands], + [Command | Args] = Commands, + CommandAtom = list_to_atom(Command), BaseConfig1 = init_config1(BaseConfig), %% Process each command, resetting any state between each one {ok, Providers} = application:get_env(rebar, providers), BaseConfig2 = rebar_config:create_logic_providers(Providers, BaseConfig1), - rebar_core:process_commands(CommandAtoms, BaseConfig2), + rebar_core:process_commands(CommandAtom, Args, BaseConfig2), ok. %% |