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

Bug #1823 The getHelp() method ignores user-defined header for the helptext
Submitted: 2004-07-08 05:23 UTC Modified: 2004-09-28 09:40 UTC
From: contact at jenskleikamp dot de Assigned: scottmattocks
Status: Closed Package: Console_Getargs
PHP Version: 4.3.6 OS: x86 Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-07-08 05:23 UTC] contact at jenskleikamp dot de
Description: ------------ PEAR Version 1.3.1 Console_Getargs 0.1.0 CVS Version of Getargs.php: 1.1 The public getHelp() method ignores the optional parameter for the header of the help. Reproduce code: --------------- #!/usr/bin/php -q <?php require_once('Console/Getargs.php'); $config = array('debug' => array('short' => 'd', 'desc' => 'Show current DAO settings'), 'help' => array('short' => 'h', 'desc' => 'Show help information.')); echo Console_Getargs::getHelp($config, Usage: Foo')."\n"; ?> Expected result: ---------------- bin $ ./getargs_test.php Usage: Foo -d --debug Show current DAO Settings -h --help Show help information. Actual result: -------------- bin $ ./getargs_test.php -d --debug Show current DAO Settings -h --help Show help information.

Comments

 [2004-07-11 16:56 UTC] gurugeek
Dear Maintainer, Your package console_getargs has currently 1 open bug. We urge you to take the necessary steps to solve the reported issues at your soonest convenience. If the bug issue hasn’t been addressed yet you are kindly asked to take the necessary steps to ensure a prompt resolution of the problem. If you already addressed the reported problem feel free to change the bug status as soon as possible. Regards David Costa PEAR Quality Assurance pear-qa@lists.php.net
 [2004-09-28 09:40 UTC] scottmattocks
Resolved by Bertrand on 2004-09-20. Fix added to release 1.0.0.