Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Clinner
Command
Command
getOption
Clinner\Command\Command::getOption PHP Method
Command Class Documentation
Show file
Open project: ncuesta/clinner
getOption()
public
method
Get a single option value for this command, optionally providing a default value for it.
See also:
Clinner\ValueHolder::get()
public
getOption
(
string
$name
,
mixed
$default
= null ) :
mixed
$name
string
The name of the option.
$default
mixed
The default value for the option, in case it isn't set.
return
mixed
public function getOption($name, $default = null) { return $this->_options->get($name, $default); }
Command
__construct
__toString
_run
create
fromString
getArguments
getErrorOutput
getExitCode
getName
getOption
getOptions
getOutput
getOutputAsArray
getPipedCommand
hasPipedCommand
parse
pipe
run
setArguments
setName
setOption
setOptions
toCommandString