mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 05:18:12 +02:00
* Use IsYAMLFileName, detect other extensions
This commit is contained in:
parent
abeccabdf1
commit
df365a56cf
@ -173,7 +173,7 @@ begin
|
||||
FCodeGen.GenerateClient:=HasOption('c','client');
|
||||
FCodeGen.AbstractServiceCalls:=HasOption('b','abstract');
|
||||
FCodeGen.SkipServerServiceImplementationModule:=HasOption('n','no-implementation');
|
||||
FInputIsYAML:=HasOption('y','yaml') or SameText(ExtractFileExt(lInputFile),'.yaml');
|
||||
FInputIsYAML:=HasOption('y','yaml') or TYAMLParser.IsYamlFileName(lInputFile);
|
||||
FQuiet:=HasOption('q','quiet');
|
||||
|
||||
if HasOption('w','write-config') then
|
||||
|
Loading…
Reference in New Issue
Block a user