diff --git a/src/CliProgram/CommandCall/CommandArgumentList.php b/src/CliProgram/CommandCall/CommandArgumentList.php index 59e071c..e980863 100644 --- a/src/CliProgram/CommandCall/CommandArgumentList.php +++ b/src/CliProgram/CommandCall/CommandArgumentList.php @@ -60,7 +60,7 @@ class CommandArgumentList { * * @return $this */ - public function addOption (string $name, mixed $value): static { + public function addOption (string $name, mixed $value = true): static { $this->arguments[(str_starts_with($name, '-') ? '' : '--') . $name] = $value; return $this; }