anchor.diff:    KM_Defaults,
     MapUtilTypes in 'MapUtilTypes.pas',
     ConsoleMain in 'ConsoleMain.pas';
  +
  +{$R *.res}
   
   var
     fConsoleMain: TConsoleMain;
  
positive.code: program MapUtil;
  
  {$IFDEF MSWindows}
    {$APPTYPE CONSOLE}
  {$ENDIF}
  
  {$R *.res}
  
  uses
    {$IFDEF UNIX}
      {$DEFINE UseCThreads}
  
negative.code: 
    for I := 1 to ParamCount do // Skip 0, as this is the EXE-path
    begin
      fArgs := fArgs + ' ' + ParamStr(I) + sLineBreak;
  
      if (ParamStr(I) = '-h') or (ParamStr(I) = '-help') then
      begin
        fParamRecord.Help := True;
        Continue;
      end;
  
      if (ParamStr(I) = '-v') or (ParamStr(I) = '-verbose') then
      begin
        fParamRecord.Verbose := True;
        Continue;
      end;
  
      // Only allow one script file
      if fParamRecord.MapDatPath = '' then
        fParamRecord.MapDatPath := ParamStr(I);
    end;
  end;
  
  