def cbargs2cbdict(arglist):
    """Turns a list of ``name:callback`` into a dict ``{name: callback}``"""
    out = {}
    for arg in arglist:
        splits = arg.split(':')
        if len(splits) != 2:
            raise ValueError(
                'Callbacks must be supplied via the commandline using `name:import_path` pairs.'
                )
        name, cb = splits
        out[name] = cb
    return out
