/**
* Handles the command when a single option is requested
*
* @param string $option The option we want to get its value
*
* @return integer
*
* @since 4.0.0
*/
public function processSingleOption($option) : int
{
$configs = $this->getApplication()->getConfig()->toArray();
if (!array_key_exists($option, $configs)) {
$this->ioStyle->error("Can't find option *{$option}* in configuration list");
return self::CONFIG_GET_OPTION_NOT_FOUND;
}
$value = $this->formatConfigValue($this->getApplication()->get($option));
$this->ioStyle->table(['Option', 'Value'], [[$option, $value]]);
return self::CONFIG_GET_SUCCESSFUL;
}