private function parseShortOptionSet(string
$name): void
{ $len = \
strlen($name);
for ($i = 0;
$i <
$len; ++
$i) { if (!
$this->definition->
hasShortcut($name[$i])) { $encoding =
mb_detect_encoding($name, null, true
);
throw new RuntimeException(sprintf('The "-%s" option does not exist.', false ===
$encoding ?
$name[$i] :
mb_substr($name,
$i, 1,
$encoding)));
} $option =
$this->definition->
getOptionForShortcut($name[$i]);
if ($option->
acceptValue()) { $this->
addLongOption($option->
getName(),
$i ===
$len - 1 ? null :
substr($name,
$i + 1
));
break;
} else { $this->
addLongOption($option->
getName(), null
);
} } } /**
* Parses a long option.
*/