public function find($name) { foreach ($this->options as $option) { if ($option->short === $name || $option->long === $name) { return $option; } } }