From 80d27f2b5b1ec16128d02b74a33f116e1243ede9 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 15 May 2007 16:39:01 +0000 Subject: [PATCH] - Add help-list command --- ext/phar/phar/clicommand.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ext/phar/phar/clicommand.inc b/ext/phar/phar/clicommand.inc index 2183486a72..8872bea474 100755 --- a/ext/phar/phar/clicommand.inc +++ b/ext/phar/phar/clicommand.inc @@ -380,6 +380,22 @@ abstract class CLICommand } exit(0); } + + static function cli_cmd_inf_help_list() + { + return "Lists available commands."; + } + + function cli_cmd_run_help_list() + { + ksort($this->cmds); + $lst = ''; + foreach($this->cmds as $name => $funcs) + { + $lst .= $name . ' '; + } + echo substr($lst, 0, -1) . "\n"; + } } ?> \ No newline at end of file -- 2.50.1