[PEPr] Comment on Console::Console_CommandLine

From: Date: Fri, 16 Nov 2007 11:12:43 +0000
Subject: [PEPr] Comment on Console::Console_CommandLine
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48469@lists.php.net to get a copy of this message
David Jean Louis (http://pear.php.net/user/izi) has commented on the proposal for Console::Console_CommandLine. Comment: Hello Bertrand, as I said in the preliminary note, this package is very similar to Console_GetArgs and I won't push for it if Console_GetArgs is enough for everybody ;) But let me point some things it can do that Console_GetArgs cannot: * Sub commands, AFAIK Console_GetArgs does not handle things like: $ <yourprogram> -q install -v <something>, * Customization, again, AFAIK generated help is not customizable with Console_GetArgs, * Complex options checking, when you want a program to handle options orders for example or options exclusion (<yourprogram> -f<file> cannot be mixed with another option for example), with Console_CommandLine you can always use callback to do the hard stuff, * And as you pointed, xml definitions, not that I'm a handwritten xml lover eh, but it can be useful for big projects or when you have several frontends for a program. To be honest I tried to extend Console_GetArgs at first but didn't manage to implement what I wanted without breaking it all. Cheers. [off topic: your comment is a bit harsh, I don't know/care why such rancor, but again: I won't cry if the package is not integrated into PEAR, I just thought it was a good idea to propose it since it was yet developed and could be useful to others... As for not being creative, please don't worry too much for me ;)] Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=517 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

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