added help

This commit is contained in:
Tomas V.V.Cox 2002-04-01 15:23:46 +00:00
parent 1924492aed
commit 6e8268e4a4
3 changed files with 32 additions and 0 deletions

View file

@ -55,6 +55,16 @@ class PEAR_Command_Auth extends PEAR_Command_Common
}
// }}}
function getHelp($command)
{
switch ($command) {
case 'login':
return array(null, 'Connects to the remote server');
case 'logout':
return array(null, 'Disconnects from the remote server');
}
}
// {{{ run()
/**

View file

@ -57,6 +57,20 @@ class PEAR_Command_Config extends PEAR_Command_Common
}
// }}}
function getHelp($command)
{
switch ($command) {
case 'config-show':
return array(null, 'Displays the configuration');
case 'config-get':
return array('<parameter>',
'Displays the value of the given parameter');
case 'config-set':
return array('<parameter>=<value>',
'Sets the value of a parameter in the config');
}
}
// {{{ run()
function run($command, $options, $params)

View file

@ -32,6 +32,14 @@ class PEAR_Command_Registry extends PEAR_Command_Common
return array('list-installed');
}
function getHelp($command)
{
switch ($command) {
case 'list-installed':
return array(null, 'List the installed PEAR packages in the system');
}
}
// }}}
// {{{ run()