From: Marcus Boerger Date: Tue, 15 May 2007 16:39:01 +0000 (+0000) Subject: - Add help-list command X-Git-Tag: RELEASE_1_2_0~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80d27f2b5b1ec16128d02b74a33f116e1243ede9;p=php - Add help-list command --- 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