public static function setRequiredValue( Option &$option, $arg )
    {
        if ( self::isShortCode( $arg ) || self::isLongCode( $arg ) )
        {
            throw new CommandException( 'Missing argument for option --' . $option->longCode );
        }
        else
        {
            if ( is_string( $arg ) )
            {
                $arg = trim( $arg );
            }
            
            $option->value = $arg;
        }
    }
public static function setRequiredValue( Option &$option, $arg )
    {
        if ( self::isShortCode( $arg ) || self::isLongCode( $arg ) )
        {
            throw new CommandException( 'Missing argument for option --' . $option->longCode );
        }
        else
        {
            if ( is_string( $arg ) )
            {
                $arg = trim( $arg );
            }
            
            $option->value = $arg;
        }
    }
public static function setRequiredValue ( Option & $ option , $ arg ) { if ( self :: isShortCode ( $ arg ) || self :: isLongCode ( $ arg ) ) { throw new CommandException ( 'Missing argument for option --' . $ option -> longCode ) ; } else { if ( is_string ( $ arg ) ) { $ arg = trim ( $ arg ) ; } $ option -> value = $ arg ; } }
Sets the required argument.

@param Option $option the option to set to
@param mixed  $arg    the argument

@throws CommandException if argument is missing
Sets the required argument .