summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-05-31 20:24:34 +0000
committerMarcus Boerger <helly@php.net>2008-05-31 20:24:34 +0000
commit28dd1f5f5ed64ba1df57f592d9d2d8e9875f2341 (patch)
tree283259fceab1590191724d2447a242fca021f3c9
parent631484e2c7cb607701e77a4aae6f5656dae84c94 (diff)
downloadphp-git-28dd1f5f5ed64ba1df57f592d9d2d8e9875f2341.tar.gz
- MFH Add 'help commands' support
-rwxr-xr-xext/phar/phar/clicommand.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/phar/phar/clicommand.inc b/ext/phar/phar/clicommand.inc
index 067456d691..ed09a8d5b7 100755
--- a/ext/phar/phar/clicommand.inc
+++ b/ext/phar/phar/clicommand.inc
@@ -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");
}