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;
    }