def expand_params(names: list) -> list:
    """ Return an expanded list of parameters from a list of comma-separated parameters.

        E.g. given a list of ['a', 'b,c,d'], returns ['a', 'b', 'c', 'd']
    """

    expanded_names = []

    for name in names:
        expanded_names.extend(
            [i.strip() for i in name.split(',')])

    return expanded_names