hedgewars/ArgParsers.pas
changeset 11151 5c40c65b619d
parent 11046 47a8c19ecb60
parent 11099 c51e4c942525
child 11403 b894922d58cc
child 11515 4dd77731453b
equal deleted inserted replaced
11077:1fb80cd8ba7b 11151:5c40c65b619d
   333     index, nextIndex: LongInt;
   333     index, nextIndex: LongInt;
   334     wrongParameter: boolean;
   334     wrongParameter: boolean;
   335 //var tmpInt: LongInt;
   335 //var tmpInt: LongInt;
   336 begin
   336 begin
   337 
   337 
   338     paramIndex:= 1;
   338     paramIndex:= {$IFDEF HWLIBRARY}0{$ELSE}1{$ENDIF};
   339     paramTotal:= ParamCount; //-1 because pascal enumeration is inclusive
   339     paramTotal:= ParamCount; //-1 because pascal enumeration is inclusive
   340     (*
   340     (*
   341     WriteLn(stdout, 'total parameters: ' + inttostr(paramTotal));
   341     WriteLn(stdout, 'total parameters: ' + inttostr(paramTotal));
   342     tmpInt:= 0;
   342     tmpInt:= 0;
   343     while (tmpInt <= paramTotal) do
   343     while (tmpInt <= paramTotal) do