|
|
@ -60,7 +60,7 @@ class CommandArgumentList {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return $this
|
|
|
|
* @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;
|
|
|
|
$this->arguments[(str_starts_with($name, '-') ? '' : '--') . $name] = $value;
|
|
|
|
return $this;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|