1
0
mirror of synced 2024-11-14 02:59:16 +00:00
x2xmldatabinding/X2XMLDataBindingCmdLine.dpr

30 lines
696 B
ObjectPascal

program X2XMLDataBindingCmdLine;
uses
ActiveX,
SysUtils,
DelphiXMLDataBindingGenerator in 'Units\DelphiXMLDataBindingGenerator.pas',
XMLDataBindingGenerator in 'Units\XMLDataBindingGenerator.pas',
XMLDataBindingHelpers in 'Units\XMLDataBindingHelpers.pas',
DelphiXMLDataBindingResources in 'Units\DelphiXMLDataBindingResources.pas';
begin
CoInitialize(nil);
with TDelphiXMLDataBindingGenerator.Create() do
try
OutputType := otSingle;
OutputPath := ParamStr(2);
if DirectoryExists(OutputPath) then
OutputType := otMultiple
else
OutputType := otSingle;
Execute(ParamStr(1));
finally
Free();
end;
end.