Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.0

Request #4091 New method: getValues()
Submitted: 2005-04-06 20:15 UTC
From: schst Assigned: schst
Status: Closed Package: Console_Getargs
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 16 - 10 = ?

 
 [2005-04-06 20:15 UTC] schst
Description: ------------ I need a method to retrieve all options that the user has set as an associative array with either the long or the short names. I could implement this myself and submit a patch if no one of you has the time to add this. Reproduce code: --------------- -- Expected result: ---------------- -- Actual result: -------------- --

Comments

 [2005-04-07 06:59 UTC] wenz
this really sounds like a useful addition. I could probably work on it on the weekend, however if you have already code (or are willing to code :) ), feel free to send a patch!
 [2005-04-07 18:38 UTC] schst
A patch is available at: http://pear.php-tools.net/diffs/Console_Getargs_getValues.diff Hope you find it valuable and it would be great if you could release a new version soon.
 [2005-04-08 07:14 UTC] wenz
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. thanks for the patch! I did some very minor modificationss and applied it. I also briefly thought about changing the optionNames parameter to boolean, but using a string is probably more flexible in the future. Fixed in CVS.
 [2005-04-08 07:54 UTC] bmansion at mamasam dot com
Christian, If you have some time, please add a new unit test for this new function before we make a new release. Thanks, Bertrand
 [2005-04-08 08:11 UTC] schst
I could provide two tests for this feature during the weekend...
 [2005-04-08 08:13 UTC] wenz
I am not saying 'no' ;-)
 [2005-04-08 16:21 UTC] schst
OK, I'll provide a patch this weekend.
 [2005-04-08 21:14 UTC] schst
A unified diff is available at: http://pear.php-tools.net/diffs/Console_Getargs_getValues_tests.diff Basically all I did was adding a new file and add this to the test-cases specified in test.php You can also download the file at: http://pear.php-tools.net/diffs/Getargs_getValues_testcase.txt
 [2005-05-11 16:14 UTC] wenz
testcase added. Thanks, Stephan!
 [2005-05-11 16:21 UTC] schst
I hope there will be a new release soon :)