uses Forms, SysUtils, Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
var i : integer; begin if ParamCount = 0 then exit;
for i := 1 to ParamCount do begin if LowerCase(ParamStr(i)) = '-c' then begin {$APPTYPE CONSOLE} Writeln('Under Console...'); break; end else if LowerCase(ParamStr(i)) = '-f' then begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end; end; end.