[Lazarus] Parsing command line options

Marco van de Voort marcov at stack.nl
Sat Sep 8 20:53:16 CEST 2012


On Sat, Sep 08, 2012 at 06:38:40PM +0300, patspiper wrote:
> This is related to http://bugs.freepascal.org/view.php?id=22751

> - What FPC/Lazarus functions are available to parse a command line 
> (where parameters begin with a dash)?

Depends. Split arguments for TProcess use (like in the above bugreport):
afaik none. Simply keep all arguments separate and pass them to the
"parameters" propery.

In case of the callee, see the unit getopts.





More information about the Lazarus mailing list