Re: Re: [PEPr] Comment on Console::Console_Getargs
| From: | Alexander Wirtz | Date: | Wed, 21 Apr 2004 18:11:38 +0000 |
| Subject: | Re: Re: [PEPr] Comment on Console::Console_Getargs | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28226@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
[...] Well, I wrote this package because I don't like to work with Console_Getopt. Other people might like it, but I always end up parsing the args myself, using the same boring lines of code, and that's too bad because PHP from the CLI is really cool !exactly, Getopt is ok for what it does, but if you want more control over your parameters you have to do it on your own and I don't believe, that expanding Getopt is a suitable solution, as it is its approach to handling and defining parameters that lacks a certain sophistication. I've written a small shell-script to fetch data, inserting them into a database and parsing the parameters takes about a third of the code (including comments), so I can clearly see a need for a flexible parameter-parsing system beyond Getopt. My 0.02€, Alex