cvs: php-src(PHP_5_3) /ext/phar/phar clicommand.inc
| From: | Marcus Boerger | Date: | Sat, 31 May 2008 20:24:34 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/phar/phar clicommand.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-50218@lists.php.net to get a copy of this message | ||
helly Sat May 31 20:24:34 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/phar/phar clicommand.inc
Log:
- MFH Add 'help commands' support
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/phar/clicommand.inc?r1=1.23&r2=1.23.4.1&diff_format=u
Index: php-src/ext/phar/phar/clicommand.inc
diff -u php-src/ext/phar/phar/clicommand.inc:1.23 php-src/ext/phar/phar/clicommand.inc:1.23.4.1
--- php-src/ext/phar/phar/clicommand.inc:1.23 Fri Nov 23 05:51:58 2007
+++ php-src/ext/phar/phar/clicommand.inc Sat May 31 20:24:34 2008
@@ -316,6 +316,10 @@
$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");
}