public static function setOptionalValue( Option &$option, $arg )
    {
        if ( !self::isShortCode( $arg ) && !self::isLongCode( $arg ) )
        {
            if ( is_bool( $arg ) )
            {
                $option->value = ( bool )$arg;
            }
            elseif ( is_string( $arg ) )
            {
                $arg = trim( $arg );
            
                $option->value = $arg;
            }
        }
    }
public static function setOptionalValue( Option &$option, $arg )
    {
        if ( !self::isShortCode( $arg ) && !self::isLongCode( $arg ) )
        {
            if ( is_bool( $arg ) )
            {
                $option->value = ( bool )$arg;
            }
            elseif ( is_string( $arg ) )
            {
                $arg = trim( $arg );
            
                $option->value = $arg;
            }
        }
    }
public static function setOptionalValue ( Option & $ option , $ arg ) { if ( ! self :: isShortCode ( $ arg ) && ! self :: isLongCode ( $ arg ) ) { if ( is_bool ( $ arg ) ) { $ option -> value = ( bool ) $ arg ; } elseif ( is_string ( $ arg ) ) { $ arg = trim ( $ arg ) ; $ option -> value = $ arg ; } } }
Sets an optional argument if available.

@param Option $option the option to set to
@param mixed  $arg    the argument
Sets an optional argument if available .