diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-04 19:12:08 -0600 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-03-04 19:12:08 -0600 |
commit | 5f773d7adf738a1dbfdb9c047952477007d70ad3 (patch) | |
tree | 5cc3b41aca1cd03c26a6645754001bfaccccc416 /src/rebar_core.erl | |
parent | 49af56ff236ced8471fb9c52083c92ca7dfca473 (diff) | |
parent | 4a2996a7560e12c9897b4a7b333dee3e9fa66347 (diff) |
Merge pull request #219 from tsloughter/profiles_remain_applied
fix for profiles_remain_applied_with_config_present fixes #212
Diffstat (limited to 'src/rebar_core.erl')
-rw-r--r-- | src/rebar_core.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 4497825..205258a 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -78,14 +78,12 @@ process_command(State, Command) -> Command when Command =:= do; Command =:= as -> do(TargetProviders, State); _ -> - Profiles = providers:profiles(CommandProvider), - State1 = rebar_state:apply_profiles(State, Profiles), Opts = providers:opts(CommandProvider)++rebar3:global_option_spec_list(), - case getopt:parse(Opts, rebar_state:command_args(State1)) of + case getopt:parse(Opts, rebar_state:command_args(State)) of {ok, Args} -> - State2 = rebar_state:command_parsed_args(State1, Args), - do(TargetProviders, State2); + State1 = rebar_state:command_parsed_args(State, Args), + do(TargetProviders, State1); {error, {invalid_option, Option}} -> {error, io_lib:format("Invalid option ~s on task ~p", [Option, Command])} end |