def validate_args(args):

    endpoint_name = args.endpoint
    for entry_point in pkg_resources.iter_entry_points("cassback.endpoints"):            
        
        endpoint_class = entry_point.load()
        if endpoint_class.name == endpoint_name:
            endpoint_class.validate_args(args)
            return

    raise RuntimeError("Unknown endpoint name %s" % (endpoint_name,))


# ============================================================================ 
#
dataset/ETHPy150Open amorton/cassback/cassback/endpoints/endpoints.py/validate_args/original