Explorar o código

* Correct check on command-line for -t

Michaël Van Canneyt hai 1 ano
pai
achega
126cc09037
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/pastojs/src/pas2jscompiler.pp

+ 1 - 1
packages/pastojs/src/pas2jscompiler.pp

@@ -4057,7 +4057,7 @@ begin
         end;
         end;
       't': // subtarget
       't': // subtarget
         begin
         begin
-        if not Quick then
+        if not FromCmdLine then
           ParamFatal('subtarget -t parameter can only be passed as cmd line parameter');
           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));