Browse Source

pastojs: forbid subtarget -t parameter in config file

mattias 1 year ago
parent
commit
c202c6c2fe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/pastojs/src/pas2jscompiler.pp

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

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