Browse Source

pastojs: forbid subtarget -t parameter in config file

mattias 1 năm trước cách đây
mục cha
commit
c202c6c2fe

+ 2 - 0
packages/pastojs/src/pas2jscompiler.pp

@@ -4057,6 +4057,8 @@ begin
         end;
         end;
       't': // subtarget
       't': // subtarget
         begin
         begin
+        if not Quick then
+          ParamFatal('subtarget -t parameter can only be passed as cmd line parameter');
         inc(p);
         inc(p);
         SubTarget:=copy(Param,p,length(Param));
         SubTarget:=copy(Param,p,length(Param));
         end;
         end;