On Thu, May 29, 2008 at 09:17:23AM -0300, Joao Morais wrote:
> 
> You can also use ParamCount and ParamStr:
> 
> begin
>    if ParamCount = 0 then
>      // error - no param
>    if ParamStr(1) <> '-test' then
>      // error - invalid param

Or unit getopts directly. TCustomApplication apparantly wraps this if I see
the argument names.
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to