现在只要敲下 php start.php custom 后面不是 Workerman 指定的几个命令,就会出现:
```
php start.php custom
Usage: php yourfile <command> [mode]
Commands:
start Start worker in DEBUG mode.
Use mode -d to start in DAEMON mode.
stop Stop worker.
Use mode -g to stop gracefully.
restart Restart workers.
Use mode -d to start in DAEMON mode.
Use mode -g to stop gracefully.
reload Reload codes.
Use mode -g to reload gracefully.
status Get worker status.
Use mode -d to show live status.
connections Get worker connections.
```
希望 Workerman 新增一些自定义命令的方式,比如:
```
Worker::addCommand('custom', function() {
new MyOtherServer();
Worker::runAll();
}, 'Custom command information.');
```