Descriptor.php
public function getInputOptionsSynopsis(definitions\Options $definitions, array $options = null)
    {
        if ($definitions->isEmpty()) {
            return '';
        }

        // The 'short_synopsis' option is primarily used by the Help command which lists all Input Options
        // separately from the synopsis for brevity.
        if ($options['short_synopsis'] ?? false) {
            return '[options]';
        }

        $items = [];

        foreach ($definitions as $option) {
            $items[] = $this->getInputOptionSynopsis($option, $options);
        }

        return implode(' ', $items);
    }
public function getInputOptionsSynopsis(definitions\Options $definitions, array $options = null)
    {
        if ($definitions->isEmpty()) {
            return '';
        }

        // The 'short_synopsis' option is primarily used by the Help command which lists all Input Options
        // separately from the synopsis for brevity.
        if ($options['short_synopsis'] ?? false) {
            return '[options]';
        }

        $items = [];

        foreach ($definitions as $option) {
            $items[] = $this->getInputOptionSynopsis($option, $options);
        }

        return implode(' ', $items);
    }
public function getInputOptionsSynopsis ( definitions \ Options $ definitions , array $ options = null ) { if ( $ definitions -> isEmpty ( ) ) { return '' ; } // The 'short_synopsis' option is primarily used by the Help command which lists all Input Options // separately from the synopsis for brevity. if ( $ options [ 'short_synopsis' ] ?? false ) { return '[options]' ; } $ items = [ ] ; foreach ( $ definitions as $ option ) { $ items [ ] = $ this -> getInputOptionSynopsis ( $ option , $ options ) ; } return implode ( ' ' , $ items ) ; }
Provides a synopsis for the given Input Option Definitions.

@param   definitions\Options     $definitions    The Input Option Definitions 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 Definitions .