[Lazarus] Parsing command line options
Marco van de Voort
marcov at stack.nl
Tue Sep 11 12:31:37 CEST 2012
On Mon, Sep 10, 2012 at 05:19:35PM +0200, J.A. de Vries wrote:
> > on *nix). The 3rd step is to add each parameter using
> > TProcess.Parameters.Add. It is kind of a middle ground though I
> > definitely support your suggestion if doable. Parsing a command line is
> > a can of worms!
> Might I make a suggestion? Why try and invent the wheel ourselves?
> There's a very good library named getopts that has been used by masses
> of programmers for years now. Maybe we could learn from that and
> re-implement the choices made in there?
Besides the already named problems, that library and its principles are
unix-centric. Though that matters less than in the past.
More information about the Lazarus