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

Bug #13924 Console_Getopt: unrecognized option
Submitted: 2008-05-17 03:01 UTC Modified: 2008-05-22 18:47 UTC
From: farell Assigned: kguest
Status: Closed Package: PEAR_Size (version 0.1.3)
PHP Version: 5.2.5 OS: windows xp
Roadmaps: 0.1.4    
Subscription  


 [2008-05-17 03:01 UTC] farell (Laurent Laville)
Description: ------------ This time, I've just test it after release, and found a major problem on windows plateform with pear command integration While this one work : pearsize -X package Pear integration does not works: pear size -X package Of course it could be normal, especially if you removed this option on release 0.1.3 , while it was here on 0.1.2 See file Command/Size.php "xml" => array( "shortopt" => "X", "doc" => "output results in XML format"), No more in new version As specified by command pear help size But this command "pearsize -h" tell it was here ... -X, --xml output results in XML format Test script: --------------- pear size -X php_compatinfo Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <pear_size version="0.1.3"> <channel name="pear.php.net"> <package name="PHP_CompatInfo" total=1284419> <role name="data" total=0/> <role name="doc" total=16980/> <role name="ext" total=0/> <role name="php" total=1120323/> <role name="script" total=1657/> <role name="src" total=0/> <role name="test" total=145459/> </package> </channel> </pear_size> Actual result: -------------- Console_Getopt: unrecognized option -- X

Comments

 [2008-05-22 18:47 UTC] kguest (Ken Guest)
fixed in PEAR_Size/Command/Size.php (commands array had to be tweaked)