Handle option value with equal sign

option should be handled with an equal sign.
This commit is contained in:
Takayasu Oyama 2017-06-26 18:59:14 +09:00 committed by GitHub
parent 15274524b2
commit b8d7a6cb6b

View File

@ -252,7 +252,7 @@ class ParallelExecutor implements ExecutorInterface
foreach (['log'] as $option) { foreach (['log'] as $option) {
$value = $this->input->getOption($option); $value = $this->input->getOption($option);
if ($value) { if ($value) {
$input .= " --$option $value"; $input .= " --$option=$value";
} }
} }
@ -268,7 +268,7 @@ class ParallelExecutor implements ExecutorInterface
foreach ($this->console->getUserDefinition()->getOptions() as $option) { foreach ($this->console->getUserDefinition()->getOptions() as $option) {
$value = $this->input->getOption($option->getName()); $value = $this->input->getOption($option->getName());
if ($value) { if ($value) {
$input .= " --{$option->getName()} $value"; $input .= " --{$option->getName()}=$value";
} }
} }