pharext\Cli\Args::opt PHP Method

opt() private method

Retreive the canonical name (--long-name) of an option
private opt ( string $o ) : string
$o string
return string
    private function opt($o)
    {
        if (is_numeric($o)) {
            return "--{$o}";
        }
        if ($o[0] !== '-') {
            if (strlen($o) > 1) {
                $o = "-{$o}";
            }
            $o = "-{$o}";
        }
        return $o;
    }