public function setArgumentsParser(script\arguments\parser $parser = null) { $this->argumentsParser = $parser ?: new script\arguments\parser(); $this->setArgumentHandlers(); return $this; }