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

Bug #12468 Wrong message for invalid command
Submitted: 2007-11-17 14:11 UTC
From: felipensp at gmail dot com Assigned: dufuz
Status: Closed Package: PEAR
PHP Version: Irrelevant OS:
Roadmaps: 1.7.0    
Subscription  


 [2007-11-17 14:11 UTC] felipensp at gmail dot com (Felipe Pena)
Description: ------------ Wrong message for invalid command. Reproduce code: --------------- felipe@pena:~$ pecl foo Expected result: ---------------- Command 'foo' is not valid, try 'pecl help' Actual result: -------------- Command 'foo' is not valid, try 'pear help'

Comments

 [2007-11-17 15:37 UTC] msaraujo at php dot net
Thank you for taking the time to write to us, but this is not a bug. Hello, What is the proper message for an invalid command?
 [2007-11-17 15:40 UTC] cweiske at php dot net
I think it should read "pecl" not "pear"
 [2007-11-17 16:14 UTC] philip at roshambo dot org
This is actually a pear bug, here's a patch: Index: pear-core/scripts/pearcmd.php =================================================================== RCS file: /repository/pear-core/scripts/pearcmd.php,v retrieving revision 1.37 diff -u -r1.37 pearcmd.php --- pear-core/scripts/pearcmd.php 8 Jan 2007 05:14:01 -0000 1.37 +++ pear-core/scripts/pearcmd.php 17 Nov 2007 14:23:38 -0000 @@ -394,7 +394,7 @@ return "$progname $command [options] $help[0]\n$help[1]"; } } - return "Command '$command' is not valid, try 'pear help'"; + return "Command '$command' is not valid, try '$progname help'"; }
 [2007-11-17 16:23 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!
 [2007-11-17 21:02 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!