Descriptor.php
public function getInputOptionSynopsis(input\Option $definition, array $options = null)
    {
        $shortcut = $definition->getShortcut() ? sprintf('-%s|', $definition->getShortcut()) : '';

        if ($value = $definition->getValue()) {
            $format = $value->is(input\Value::REQUIRED) ? '%s--%s="..."' : '%s--%s[="..."]';
        } else {
            $format = '%s--%s';
        }

        return sprintf('['.$format.']', $shortcut, $definition->getName());
    }
public function getInputOptionSynopsis(input\Option $definition, array $options = null)
    {
        $shortcut = $definition->getShortcut() ? sprintf('-%s|', $definition->getShortcut()) : '';

        if ($value = $definition->getValue()) {
            $format = $value->is(input\Value::REQUIRED) ? '%s--%s="..."' : '%s--%s[="..."]';
        } else {
            $format = '%s--%s';
        }

        return sprintf('['.$format.']', $shortcut, $definition->getName());
    }
public function getInputOptionSynopsis ( input \ Option $ definition , array $ options = null ) { $ shortcut = $ definition -> getShortcut ( ) ? sprintf ( '-%s|' , $ definition -> getShortcut ( ) ) : '' ; if ( $ value = $ definition -> getValue ( ) ) { $ format = $ value -> is ( input \ Value :: REQUIRED ) ? '%s--%s="..."' : '%s--%s[="..."]' ; } else { $ format = '%s--%s' ; } return sprintf ( '[' . $ format . ']' , $ shortcut , $ definition -> getName ( ) ) ; }
Provides a synopsis for the given Input Option.

@param   input\Option    $definition     The Input Option to provide a synopsis for.
@param   array           $options        Additional options to be considered by the Descriptor.
@return  mixed
Provides a synopsis for the given Input Option .