From 6e8268e4a43f13ee35802cbc06739bfdbe53ea56 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Mon, 1 Apr 2002 15:23:46 +0000 Subject: [PATCH] added help --- pear/PEAR/Command/Auth.php | 10 ++++++++++ pear/PEAR/Command/Config.php | 14 ++++++++++++++ pear/PEAR/Command/Registry.php | 8 ++++++++ 3 files changed, 32 insertions(+) diff --git a/pear/PEAR/Command/Auth.php b/pear/PEAR/Command/Auth.php index 7fb834702a..f59f730b83 100644 --- a/pear/PEAR/Command/Auth.php +++ b/pear/PEAR/Command/Auth.php @@ -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() /** diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php index 1fdcf32747..9f73169d59 100644 --- a/pear/PEAR/Command/Config.php +++ b/pear/PEAR/Command/Config.php @@ -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('', + 'Displays the value of the given parameter'); + case 'config-set': + return array('=', + 'Sets the value of a parameter in the config'); + } + } // {{{ run() function run($command, $options, $params) diff --git a/pear/PEAR/Command/Registry.php b/pear/PEAR/Command/Registry.php index 25e0c576b4..e4a9530011 100644 --- a/pear/PEAR/Command/Registry.php +++ b/pear/PEAR/Command/Registry.php @@ -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() -- 2.40.0