Options in cmd line application lazarus / 8-Other ---------------------------------------------------------------------- daz · 2008-05-14 01:44 So I tried this:   if HasOption('l','loser') then begin      writeln('Custom option!');   End; And it gave me this error: exception at 00000000: Invalid option at position 1: "l". *Sigh* How can I add my own options like myapp.exe -l ? ---------------------------------------------------------------------- Leledumbo · 2008-05-14 04:58 Take a look at GetOpts unit documentation, there's an example there.