mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +02:00
* Also show builtin templates other than the default
git-svn-id: trunk@16943 -
This commit is contained in:
parent
6ccb769768
commit
9b077ad93b
@ -321,6 +321,7 @@ Procedure ProcessCommandline;
|
||||
Var
|
||||
I : Integer;
|
||||
S : String;
|
||||
ShowBuiltinCommand : boolean;
|
||||
|
||||
Function GetOptArg : String;
|
||||
|
||||
@ -361,10 +362,7 @@ begin
|
||||
case S[2] of
|
||||
'v' : Verbose:=True;
|
||||
'h' : Usage;
|
||||
'b' : begin
|
||||
ShowBuiltin;
|
||||
halt(0);
|
||||
end;
|
||||
'b' : ShowBuiltinCommand := true;
|
||||
'm' : begin
|
||||
ShowBuiltinMacros;
|
||||
halt(0);
|
||||
@ -409,6 +407,11 @@ begin
|
||||
|
||||
TemplateParser.Values['TEMPLATEFILE'] := 'builtin';
|
||||
end;
|
||||
if ShowBuiltinCommand then
|
||||
begin
|
||||
ShowBuiltIn;
|
||||
halt(0);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user