cvs: php4 /pear/PEAR/Command Install.php /pear/scripts pear.in

From: Date: Sun, 26 May 2002 17:37:52 +0000
Subject: cvs: php4 /pear/PEAR/Command Install.php /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4107@lists.php.net to get a copy of this message
cox Sun May 26 13:37:52 2002 EDT Modified files: /php4/pear/scripts pear.in /php4/pear/PEAR/Command Install.php Log: "Help" fixes Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.52 php4/pear/scripts/pear.in:1.53 --- php4/pear/scripts/pear.in:1.52 Sun May 26 08:51:10 2002 +++ php4/pear/scripts/pear.in Sun May 26 13:37:51 2002 @@ -19,7 +19,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: pear.in,v 1.52 2002/05/26 12:51:10 ssb Exp $ +// $Id: pear.in,v 1.53 2002/05/26 17:37:51 cox Exp $ /** * @nodep Gtk @@ -133,7 +133,7 @@ Gtk::main(); } else do { if ($command == 'help') { - usage(null, @$options[1][0]); + usage(null, @$options[1][1]); } PEAR::pushErrorHandling(PEAR_ERROR_RETURN); Index: php4/pear/PEAR/Command/Install.php diff -u php4/pear/PEAR/Command/Install.php:1.30 php4/pear/PEAR/Command/Install.php:1.31 --- php4/pear/PEAR/Command/Install.php:1.30 Mon May 20 21:38:50 2002 +++ php4/pear/PEAR/Command/Install.php Sun May 26 13:37:52 2002 @@ -16,7 +16,7 @@ // | Author: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Install.php,v 1.30 2002/05/21 01:38:50 ssb Exp $ +// $Id: Install.php,v 1.31 2002/05/26 17:37:52 cox Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Installer.php"; @@ -148,6 +148,9 @@ function doInstall($command, $options, $params) { + if (sizeof($params) < 1) { + return $this->raiseError('Missing package to install. Try "help install"'); + } if (empty($this->installer)) { $this->installer = &new PEAR_Installer($ui); }

« previous php.pear.cvs (#4107) next »