protected function main() { $this->init(); $sort = Command::SORT_BY_NAME; if ($this->input->getOption('time')) { $sort = Command::SORT_BY_TIME; } $this->listNodes(Node::filter([['status' => 'PENDING']]), $sort); }