public static function isLongCode( $arg )
    {
        $retVal = ( strlen( $arg ) > 2 ) && ( '-' === $arg[ 0 ] && '-' === $arg[ 1 ] );
        
        if ( 2 === strlen( $arg ) )
        {
            return $retVal;
        }
        
        if ( ( !is_bool( $arg ) && !Util::validIndex( 2, $arg ) ) || '-' === $arg[ 2 ] )
        {
            throw new CommandException( 'Unknown option type [ ' . $arg . ' ]' );
        }
        
        return $retVal;
    }
public static function isLongCode( $arg )
    {
        $retVal = ( strlen( $arg ) > 2 ) && ( '-' === $arg[ 0 ] && '-' === $arg[ 1 ] );
        
        if ( 2 === strlen( $arg ) )
        {
            return $retVal;
        }
        
        if ( ( !is_bool( $arg ) && !Util::validIndex( 2, $arg ) ) || '-' === $arg[ 2 ] )
        {
            throw new CommandException( 'Unknown option type [ ' . $arg . ' ]' );
        }
        
        return $retVal;
    }
public static function isLongCode ( $ arg ) { $ retVal = ( strlen ( $ arg ) > 2 ) && ( '-' === $ arg [ 0 ] && '-' === $ arg [ 1 ] ) ; if ( 2 === strlen ( $ arg ) ) { return $ retVal ; } if ( ( ! is_bool ( $ arg ) && ! Util :: validIndex ( 2 , $ arg ) ) || '-' === $ arg [ 2 ] ) { throw new CommandException ( 'Unknown option type [ ' . $ arg . ' ]' ) ; } return $ retVal ; }
Checks if the argument is a long code.

@param string $arg the argument

@return bool TRUE if long code, else FALSE

@throws CommandException if the argument is malformed
Checks if the argument is a long code .