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. -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus