Bug #12468 [Ver]: Wrong message for invalid command

From: Date: Sat, 17 Nov 2007 16:14:54 +0000
Subject: Bug #12468 [Ver]: Wrong message for invalid command
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6084@lists.php.net to get a copy of this message
Edit report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1 ID: 12468 Updated by: philip@roshambo.org Reported By: felipensp at gmail dot com Status: Verified Id: 12468 Type: Bug Package: Bug System PHP Version: Irrelevant New Comment: 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'"; } Previous Comments: ------------------------------------------------------------------------ [2007-11-17 10:40:16] cweiske at php dot net I think it should read "pecl" not "pear" ------------------------------------------------------------------------ [2007-11-17 10:37:14] 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 09:11:16] felipensp at gmail dot com 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' ------------------------------------------------------------------------ -- Edit this bug report at http://pecl.php.net/bugs/bug.php?id=12468&edit=1

« previous php.pear.webmaster (#6084) next »