"Help" fixes

This commit is contained in:
Tomas V.V.Cox 2002-05-26 17:37:52 +00:00
parent 2d953b348a
commit f2f69974e9
2 changed files with 4 additions and 1 deletions

View File

@ -148,6 +148,9 @@ specified at once.
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);
}

View File

@ -133,7 +133,7 @@ if ($fetype == 'Gtk') {
Gtk::main();
} else do {
if ($command == 'help') {
usage(null, @$options[1][0]);
usage(null, @$options[1][1]);
}
PEAR::pushErrorHandling(PEAR_ERROR_RETURN);