def split_args(all_args):
    """Split incoming args

    All args need to be separted by a space. Kwargs need to have ':=' between key and val

    i.e:
        ``arg1 arg2 kwarg1:=val kwarg2:='ex'``

    Args:
        all_args (list of str): List of input args

    Returns:
        list: args, kwargs
    """
    args = []
    kwargs = {}

    if all_args is not None:
        args = [a for a in all_args if ':=' not in a]
        kwargs_list = [a for a in all_args if ':=' in a]

        for each_arg in kwargs_list:
            vals = each_arg.split(':=')
            kwargs[vals[0]] = vals[1]

    return args, kwargs