public function __construct($input) { $this->input = $input; unset($this->input[0]); $helpIndex = array_search('-h', $this->input); if (false !== $helpIndex || empty($this->input)) { $this->help = true; return; } $this->getParameters(); }