From: Stig Bakken Date: Tue, 9 Apr 2002 17:15:17 +0000 (+0000) Subject: * package-validate uses package.xml as default param X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~766 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e91f94a25983673f92255a8e43ba174ea3843591;p=php * package-validate uses package.xml as default param --- diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 63e5a59eae..eb2d9771b2 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -293,8 +293,7 @@ class PEAR_Command_Package extends PEAR_Command_Common case 'package-validate': { if (sizeof($params) < 1) { - $help = $this->getHelp($command); - return $this->raiseError("$command: missing parameter: $help[0]"); + $params[0] = "package.xml"; } $obj = new PEAR_Common; $info = null;