public function getOptions()
    {
        $result = [];

        foreach ($this->options as $option) {
            $value = $option->getValue();
            if ($value !== null) {
                $result[$option->getShort() ?: $option->getLong()] = $value;
                if ($short = $option->getShort()) {
                    $result[$short] = $value;
                }
                if ($long = $option->getLong()) {
                    $result[$long] = $value;
                }
            }
        }

        return $result + $this->additionalOptions;
    }
public function getOptions()
    {
        $result = [];

        foreach ($this->options as $option) {
            $value = $option->getValue();
            if ($value !== null) {
                $result[$option->getShort() ?: $option->getLong()] = $value;
                if ($short = $option->getShort()) {
                    $result[$short] = $value;
                }
                if ($long = $option->getLong()) {
                    $result[$long] = $value;
                }
            }
        }

        return $result + $this->additionalOptions;
    }
public function getOptions ( ) { $ result = [ ] ; foreach ( $ this -> options as $ option ) { $ value = $ option -> getValue ( ) ; if ( $ value !== null ) { $ result [ $ option -> getShort ( ) ? : $ option -> getLong ( ) ] = $ value ; if ( $ short = $ option -> getShort ( ) ) { $ result [ $ short ] = $ value ; } if ( $ long = $ option -> getLong ( ) ) { $ result [ $ long ] = $ value ; } } } return $ result + $ this -> additionalOptions ; }
Returns the list of options with a value.

@return array
Returns the list of options with a value .