[Lazarus] command line options

Marco van de Voort marcov at stack.nl
Thu May 29 17:10:58 CEST 2008


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.



More information about the Lazarus mailing list