def parse_arguments(argv, verbose=0):
    """
    Old command-line parser (this is currently unused and
    it's not clear if it will be useful in the future).

    This function is in ``utils.py``.
    """
    list = []
    unproc_list = []
    if verbose > 1:
        print('Number of arguments:', len(argv), 'arguments.')
        print('Argument List:', str(argv))
    ix = 1
    while ix < len(argv):
        if verbose > 1:
            print('Processing index', ix, 'with value', argv[ix], '.')
        initial_ix_done = 0
        while initial_ix_done == 0:
            if ix == len(argv):
                initial_ix_done = 1
            elif argv[ix][0] == '-':
                initial_ix_done = 1
            else:
                if verbose > 1:
                    print('Adding', argv[ix], ' to unprocessed list.')
                unproc_list.append(argv[ix])
                ix = ix + 1
        if ix < len(argv):
            list_one = []
            cmd_name = argv[ix][1:]
            if cmd_name[0] == '-':
                cmd_name = cmd_name[1:]
            list_one.append(cmd_name)
            if verbose > 1:
                print('Found option', cmd_name, 'at index', ix)
            ix_next = ix + 1
            ix_next_done = 0
            while ix_next_done == 0:
                if ix_next == len(argv):
                    ix_next_done = 1
                elif argv[ix_next][0] == '-':
                    ix_next_done = 1
                else:
                    if verbose > 1:
                        print('Adding ' + argv[ix_next] + ' with index ' +
                            str(ix_next) + ' to list for ' + cmd_name)
                    list_one.append(argv[ix_next])
                    ix_next = ix_next + 1
            list.append(list_one)
            ix = ix_next
    return list, unproc_list
