argument('action'); $argv[1] = $action; if ($this->option('d')) { $argv[2] = '-d'; } $host = $this->option('host'); $port = $this->option('port'); $worker = new NodeWorker($host, $port); $worker->run(); } }