]> granicus.if.org Git - php/commitdiff
* package-validate uses package.xml as default param
authorStig Bakken <ssb@php.net>
Tue, 9 Apr 2002 17:15:17 +0000 (17:15 +0000)
committerStig Bakken <ssb@php.net>
Tue, 9 Apr 2002 17:15:17 +0000 (17:15 +0000)
pear/PEAR/Command/Package.php

index 63e5a59eae812fd5d62888d7e512fffdb6f677a0..eb2d9771b2f0d29ac429d5b1f3efd103e811f017 100644 (file)
@@ -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;