getOption() public method

Returns an option by its long or short name.
public getOption ( string $name, boolean $includeBase = true ) : Option
$name string The long or short option name.
$includeBase boolean Whether to include options in the base format in the search.
return Option The option.
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetOptionFailsIfIncludeBaseNoBoolean()
 {
     $this->builder->getOption('argument', 1234);
 }