mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- MFH Add 'help commands' support
This commit is contained in:
parent
631484e2c7
commit
28dd1f5f5e
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user