protected function getOptionNotation(OptionInterface $option): string
    {
        $multiple = $option->isMultiple();
        $short = $option->getShort();
        $long = $option->getLong();
        $flag = $option->isFlag();

        $notation = '';
        if ($short !== null) {
            $notation .= '-' . $short;

            if ($flag === false) {
                $notation .= '=';
            } elseif ($multiple === true) {
                $notation .= '+';
            }
        }

        if ($long !== null) {
            if (strlen($notation) > 0) {
                $notation .= '|';
            }

            $notation .= '--' . $long;

            if ($flag === false) {
                $notation .= '=';
            } elseif ($multiple === true) {
                $notation .= '+';
            }
        }

        return $notation;
    }
protected function getOptionNotation(OptionInterface $option): string
    {
        $multiple = $option->isMultiple();
        $short = $option->getShort();
        $long = $option->getLong();
        $flag = $option->isFlag();

        $notation = '';
        if ($short !== null) {
            $notation .= '-' . $short;

            if ($flag === false) {
                $notation .= '=';
            } elseif ($multiple === true) {
                $notation .= '+';
            }
        }

        if ($long !== null) {
            if (strlen($notation) > 0) {
                $notation .= '|';
            }

            $notation .= '--' . $long;

            if ($flag === false) {
                $notation .= '=';
            } elseif ($multiple === true) {
                $notation .= '+';
            }
        }

        return $notation;
    }
protected function getOptionNotation ( OptionInterface $ option ) : string { $ multiple = $ option -> isMultiple ( ) ; $ short = $ option -> getShort ( ) ; $ long = $ option -> getLong ( ) ; $ flag = $ option -> isFlag ( ) ; $ notation = '' ; if ( $ short !== null ) { $ notation .= '-' . $ short ; if ( $ flag === false ) { $ notation .= '=' ; } elseif ( $ multiple === true ) { $ notation .= '+' ; } } if ( $ long !== null ) { if ( strlen ( $ notation ) > 0 ) { $ notation .= '|' ; } $ notation .= '--' . $ long ; if ( $ flag === false ) { $ notation .= '=' ; } elseif ( $ multiple === true ) { $ notation .= '+' ; } } return $ notation ; }
Get option notation.

@param OptionInterface $option
@return string
Get option notation .