show = vbool::with($params["show"] ?? true); $this->prefix ??= $params["prefix"] ?? null; $this->title ??= $params["title"] ?? null; $this->description ??= $params["description"] ?? null; $this->suffix ??= $params["suffix"] ?? null; } function printHelp(?array $what=null): void { $showSection = $what["show"] ?? $this->show; if (!$showSection) return; $prefix = $what["prefix"] ?? null; if ($prefix !== null) echo $prefix; if ($this->prefix) echo "{$this->prefix}\n"; if ($this->title) echo "{$this->title}\n"; if ($this->description) echo "\n{$this->description}\n"; /** @var Aodef|Aolist $aobject */ foreach ($this->all(["aolist" => true]) as $aobject) { $aobject->printHelp(); } if ($this->suffix) echo "{$this->suffix}\n"; } }