public function printHelp() { if (!is_null($this->short)) { pantr::writeOption($this->short, $this->long, $this->desc); } else { pantr::writeOption($this->long, $this->desc); } }
public function printOptions() { if (count($this->descriptionTable) > 0) { pantr::out()->nl()->writeln('Options:', 'BOLD'); foreach ($this->descriptionTable as $long => $desc) { // check if there is a short version if (isset($this->requestAliasTable[$long])) { $short = $this->requestAliasTable[$long]; pantr::writeOption($short, $long, $desc); } else { pantr::writeOption($long, $desc); } } } }