Переглянути джерело

pastojs: fixed compileserver --simpleserver and -d relative path

git-svn-id: trunk@49024 -
(cherry picked from commit 8b63a69f597c29471ba708245af4ac97e1092e7b)
Mattias Gaertner 4 роки тому
батько
коміт
a778ccee9e
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      utils/pas2js/httpcompiler.pp

+ 1 - 2
utils/pas2js/httpcompiler.pp

@@ -558,13 +558,12 @@ begin
   S:=Checkoptions('shqd:ni:p:wP::cm:',['help','quiet','noindexpage','directory:','port:','indexpage:','watch','project::','config:','simpleserver','mimetypes:']);
   if (S<>'') or HasOption('h','help') then
     usage(S);
-  FServeOnly:=HasOption('s','simpleserver');
+  FServeOnly:=HasOption('s','serve-only');
   Quiet:=HasOption('q','quiet');
   Port:=StrToIntDef(GetOptionValue('p','port'),3000);
   D:=GetOptionValue('d','directory');
   if D='' then
     D:=GetCurrentDir;
-  D:=ExpandFileName(D);
   if HasOption('m','mimetypes') then
     MimeTypesFile:=GetOptionValue('m','mimetypes');
   if MimeTypesFile='' then