Skip to content

Commit 49483bf

Browse files
committed
Fixes problem with execution command with options without values
1 parent d9489df commit 49483bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ExecuteCommandTool.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ public function execute(object $input): string
3636
}
3737

3838
foreach ($input->options as $option) {
39-
$arguments[$option->key] = $option->value;
39+
$value = $option->value;
40+
41+
if ($option->value === '') {
42+
$value = true;
43+
}
44+
$arguments[$option->key] = $value;
4045
}
4146

4247
$output = new BufferedOutput();

0 commit comments

Comments
 (0)