echo $msg . "\n"; } else { echo $msg; } } /** * Set Args * * @param mixed $args * @return installer */ public function setArgs($args) { $this->args = $args; return $this; } /** * Get Args * * @return mixed */ public function getArgs() { return $this->args; } } $installer = new installer(); if (isset($_SERVER['argv'])) { $installer->setArgs($_SERVER['argv']); } return $installer->run();