hedgewars/ArgParsers.pas
branchios-revival
changeset 11099 c51e4c942525
parent 10316 0f46fb0e0d5f
child 11151 5c40c65b619d
equal deleted inserted replaced
11098:0032a00d915b 11099:c51e4c942525
   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