* Use IsYAMLFileName, detect other extensions

This commit is contained in:
Michaël Van Canneyt 2024-12-31 13:51:43 +01:00
parent abeccabdf1
commit df365a56cf

View File

@ -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