mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:49:16 +02:00
pastojs: fixed compileserver --simpleserver and -d relative path
git-svn-id: trunk@49024 -
This commit is contained in:
parent
e8b92a4a76
commit
8b63a69f59
@ -558,13 +558,12 @@ begin
|
|||||||
S:=Checkoptions('shqd:ni:p:wP::cm:',['help','quiet','noindexpage','directory:','port:','indexpage:','watch','project::','config:','simpleserver','mimetypes:']);
|
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
|
if (S<>'') or HasOption('h','help') then
|
||||||
usage(S);
|
usage(S);
|
||||||
FServeOnly:=HasOption('s','simpleserver');
|
FServeOnly:=HasOption('s','serve-only');
|
||||||
Quiet:=HasOption('q','quiet');
|
Quiet:=HasOption('q','quiet');
|
||||||
Port:=StrToIntDef(GetOptionValue('p','port'),3000);
|
Port:=StrToIntDef(GetOptionValue('p','port'),3000);
|
||||||
D:=GetOptionValue('d','directory');
|
D:=GetOptionValue('d','directory');
|
||||||
if D='' then
|
if D='' then
|
||||||
D:=GetCurrentDir;
|
D:=GetCurrentDir;
|
||||||
D:=ExpandFileName(D);
|
|
||||||
if HasOption('m','mimetypes') then
|
if HasOption('m','mimetypes') then
|
||||||
MimeTypesFile:=GetOptionValue('m','mimetypes');
|
MimeTypesFile:=GetOptionValue('m','mimetypes');
|
||||||
if MimeTypesFile='' then
|
if MimeTypesFile='' then
|
||||||
|
Loading…
Reference in New Issue
Block a user