getCommandOption() public method

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