anchor.diff:  %% Public API
   %% ====================================================================
   
  +%% escript Entry point
   main(Args) ->
       case catch(run(Args)) of
           ok ->
  
positive.code: -module(rebar).
  
  -export([main/1,
           help/0,
           parse_args/1,
           version/0,
  
negative.code:             io:format("Uncaught error in rebar_core: ~p\n", [Error]),
              rebar_utils:delayed_halt(1)
      end.
  
  %% Erlang-API entry point
  run(BaseConfig, Commands) ->
      application:load(rebar),
      run_aux(BaseConfig, Commands).
  
  %% ====================================================================
  %% Internal functions
  