private function formatOption(Option $option) : string
    {
        $text = "[--{$option->getName()}";

        if ($option->valueIsOptional()) {
            $text .= '=' . $option->getDefaultValue();
        }

        if ($option->getShortName() !== null) {
            $text .= "|-{$option->getShortName()}";
        }

        $text .= ']';

        return $text;
    }
private function formatOption(Option $option) : string
    {
        $text = "[--{$option->getName()}";

        if ($option->valueIsOptional()) {
            $text .= '=' . $option->getDefaultValue();
        }

        if ($option->getShortName() !== null) {
            $text .= "|-{$option->getShortName()}";
        }

        $text .= ']';

        return $text;
    }
private function formatOption ( Option $ option ) : string { $ text = "[--{$option->getName()}" ; if ( $ option -> valueIsOptional ( ) ) { $ text .= '=' . $ option -> getDefaultValue ( ) ; } if ( $ option -> getShortName ( ) !== null ) { $ text .= "|-{$option->getShortName()}" ; } $ text .= ']' ; return $ text ; }
Formats an option

@param Option $option The option to format
@return string The formatted option
Formats an option