mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 06:20:57 +02:00
* show usage if no parameters
git-svn-id: trunk@12747 -
This commit is contained in:
parent
b8d46defc5
commit
cb7f19e798
@ -715,6 +715,11 @@ var
|
||||
|
||||
begin
|
||||
Result:=0;
|
||||
if ParamCount=0 then
|
||||
begin
|
||||
Usage;
|
||||
Halt(0);
|
||||
end;
|
||||
DocLang:='';
|
||||
for i := 1 to ParamCount do
|
||||
ParseOption(ParamStr(i));
|
||||
@ -744,6 +749,7 @@ begin
|
||||
WriteLn(STitle);
|
||||
WriteLn(Format(SVersion, [FPCVersion, FPCDate]));
|
||||
WriteLn(SCopyright);
|
||||
|
||||
InitOptions;
|
||||
Try
|
||||
E:=ParseCommandLine;
|
||||
|
Loading…
Reference in New Issue
Block a user