]> granicus.if.org Git - php/commitdiff
- MFH Add 'help commands' support
authorMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:24:34 +0000 (20:24 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 31 May 2008 20:24:34 +0000 (20:24 +0000)
ext/phar/phar/clicommand.inc

index 067456d691b5a64967a23e150dbd957ffdf43f7b..ed09a8d5b730e99fa019d6d4972131480e3d995f 100755 (executable)
@@ -316,6 +316,10 @@ abstract class CLICommand
             
             $which = $which[0];
             if (!array_key_exists($which, $this->cmds)) {
+               if (strtolower($which) == 'commands') {
+                       self::cli_cmd_run_help_list();
+                       exit(0);
+               }
                 self::error("Unknown command, cannot retrieve help.\n");
             }