mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 15:57:45 +02:00
pas2js: fixed option --simpleserver and -d relative path
This commit is contained in:
parent
412a9b37df
commit
c1483d282b
@ -558,12 +558,13 @@ 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','serve-only');
|
||||
FServeOnly:=HasOption('s','simpleserver');
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user