mini\CLI\ArgManager::withFlag() Method

public

Signature

public function withFlag(?string $short = NULL, ?string $long = NULL): static

Parameters

Name Type Default Description
$short ?string NULL Documentation missing
$long ?string NULL Documentation missing

Returns

static

Documentation

Declare a boolean flag option

Flags don't take values. They can be repeated for counting (e.g., -vvv for verbosity level).

Source

src/CLI/ArgManager.php:163-166