getCommandOption() 공개 메소드

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.
리턴 CommandOption The command option.
예제 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetCommandOptionFailsIfIncludeBaseNoBoolean()
 {
     $this->builder->getCommandOption('argument', 1234);
 }