/** * Set long options * * @param string|array $option * @param string $accept */ public function setLongOption($option, $accept = self::REQUIRED) { if ($this->_longOptions === null) { $this->_longOptions = array(); } $build = !Steelcode_Array_Helper::isEmpty($option) ? $option : array($option => $accept); foreach ($build as $option => $accept) { if ($accept === self::REQUIRED) { $value = "{$option}:"; } elseif ($accept === self::OPTIONAL) { $value = "{$option}::"; } else { $value = $option; } array_push($this->_longOptions, $value); } }