From 28dd1f5f5ed64ba1df57f592d9d2d8e9875f2341 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 31 May 2008 20:24:34 +0000 Subject: [PATCH] - MFH Add 'help commands' support --- ext/phar/phar/clicommand.inc | 4 ++++ 1 file changed, 4 insertions(+) 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"); } -- 2.50.1