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

Bug #1823 The getHelp() method ignores user-defined header for the helptext
Submitted: 2004-07-08 10:23 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 10: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 21:56 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-09-28 14:40 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!