protected function _parse($arg) { $pos = strpos($arg, '='); if ($pos !== false) { $name = substr($arg, 0, $pos); $value = substr($arg, $pos + 1); } else { $name = $arg; $value = true; } return [$name, $value]; }