]> granicus.if.org Git - php/commitdiff
added help
authorTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 15:23:46 +0000 (15:23 +0000)
committerTomas V.V.Cox <cox@php.net>
Mon, 1 Apr 2002 15:23:46 +0000 (15:23 +0000)
pear/PEAR/Command/Auth.php
pear/PEAR/Command/Config.php
pear/PEAR/Command/Registry.php

index 7fb834702a9e0e680ee5e9c7d993719138589b6f..f59f730b83c243fbe8d739a1ff03e6c2aedf6fcf 100644 (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()
 
     /**
index 1fdcf32747dc009c32b98c6d5b37aef4bb0e625a..9f73169d59167fbf59d3e7a4ae12f25291c2a436 100644 (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)
index 25e0c576b410c9cef11abe23b970d7064d518bc8..e4a953001166776789c1589b3579cba48f5291f0 100644 (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()