cvs: pear /PEAR_Info/Info Cli.php
| From: | Laurent Laville | Date: | Fri, 28 Mar 2008 14:25:10 +0000 |
| Subject: | cvs: pear /PEAR_Info/Info Cli.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-51709@lists.php.net to get a copy of this message | ||
farell Fri Mar 28 14:25:10 2008 UTC
Modified files:
/pear/PEAR_Info/Info Cli.php
Log:
do not print help usage when version asked (-V | --version)
http://cvs.php.net/viewvc.cgi/pear/PEAR_Info/Info/Cli.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/PEAR_Info/Info/Cli.php
diff -u pear/PEAR_Info/Info/Cli.php:1.1 pear/PEAR_Info/Info/Cli.php:1.2
--- pear/PEAR_Info/Info/Cli.php:1.1 Sun Mar 23 10:13:36 2008
+++ pear/PEAR_Info/Info/Cli.php Fri Mar 28 14:25:10 2008
@@ -14,7 +14,7 @@
* @package PEAR_Info
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.php.net/license/3_01.txt
PHP License 3.01
- * @version CVS: $Id: Cli.php,v 1.1 2008/03/23 10:13:36 farell Exp $
+ * @version CVS: $Id: Cli.php,v 1.2 2008/03/28 14:25:10 farell Exp $
* @link http://pear.php.net/package/PEAR_Info
* @since File available since Release 1.8.0
*/
@@ -233,7 +233,12 @@
function run()
{
if (isset($this->error)) {
- $this->_printUsage($this->error);
+ if (strpos($this->error, 'PEAR_Info') === false) {
+ $this->_printUsage($this->error);
+ } else {
+ // when Version asked, do not print help usage
+ echo $this->error;
+ }
return;
}