Re: Re: [PEPr] Comment on Console::Console_Getargs

From: Date: Wed, 21 Apr 2004 18:00:17 +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-28225@lists.php.net to get a copy of this message
<tobias@schlitt.info> wrote : > Michael Wallner wrote: > >> I personally never liked the approach Console_Getopt took, >> but nevertheless I wonder if "merging" 25k of code into >> a 9k package is that useful, particulary if you compare >> the two packages. >> >> > I don't think, you can take the size of a package as a criteria. A > solution would be to create a new package Console_Getopt2 or to devide > the current Console_Getopt to support both facilities. AFAIK, there's already a method called Console_Getopt2 in Console_Getopt so this may add even more confusion... > I'm against creating a second console-option package to avoid user > confusion, since this is an essential functionality in PEAR and for > general console development. 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 ! With this package, you can create a CLI tool in five minutes, without having to bother about the help, the arguments checking, the retrieval of values so you save time. All you have to do is think about which are the arguments you need, how many of them, and you are ready to code. Bertrand Mansion Mamasam

« previous php.pear.dev (#28225) next »