}
return $GLOBALS['_PEAR_Command_commandopts'];
}
+
+ function getHelp($command)
+ {
+ $cmds = PEAR_Command::getCommands();
+ if (isset($cmds[$command])) {
+ return call_user_func(array($cmds[$command], 'getHelp'), $command);
+ }
+ return false;
+ }
}
?>
\ No newline at end of file
return array('install', 'uninstall', 'upgrade');
}
+ function getHelp($command)
+ {
+ switch ($command) {
+ case 'install':
+ return array('<pear package>',
+ 'Installs a PEAR package created by the "package" command');
+ case 'uninstall':
+ return array('<package>',
+ 'Uninstalls a previously installed PEAR package');
+ case 'upgrade':
+ return array('<pear package>',
+ 'Upgrades a PEAR package installed in the system');
+ }
+ }
+
// }}}
// {{{ run()
<?php
+//
+// +----------------------------------------------------------------------+
+// | PHP Version 4 |
+// +----------------------------------------------------------------------+
+// | Copyright (c) 1997-2002 The PHP Group |
+// +----------------------------------------------------------------------+
+// | This source file is subject to version 2.02 of the PHP license, |
+// | that is bundled with this package in the file LICENSE, and is |
+// | available at through the world-wide-web at |
+// | http://www.php.net/license/2_02.txt. |
+// | If you did not receive a copy of the PHP license and are unable to |
+// | obtain it through the world-wide-web, please send a note to |
+// | license@php.net so we can mail you a copy immediately. |
+// +----------------------------------------------------------------------+
+// | Author: Stig Bakken <ssb@fast.no> |
+// +----------------------------------------------------------------------+
+//
+// $Id$
require_once 'PEAR/Command/Common.php';
require_once 'PEAR/Packager.php';
}
// }}}
+
+ function getHelp($command)
+ {
+ switch ($command) {
+ case 'package':
+ return array('[<package.xml>]',
+ 'Creates a PEAR package from its description file (usually '.
+ 'named as package.xml)');
+ case 'package-list':
+ return array('<pear package>',
+ 'List the contents of a PEAR package');
+ case 'packge-info':
+ return array('<pear package>',
+ 'Shows information about a PEAR package');
+ }
+ }
+
+
// {{{ run()
/**
// }}}
-
}
?>
\ No newline at end of file