diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-08-16 09:12:08 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-08-16 09:12:08 -0500 |
commit | 2880e2838bd6bbb72b83e013b8fc87265d6f75aa (patch) | |
tree | 5513e1c5237ae687fcbf0b2d5ccf696f007655cd /src/rebar.erl | |
parent | a602cfc5934d0f9b6668105ee2721f846fc46aac (diff) |
move back to single command with arguments for comamnd after it
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. %% |