def splitIgnoringQuotes(string, charToSplitOn=' '):
    """
        will split on charToSplitOn, ignoring things that are in quotes
    """
    string = string.lstrip()
    toReturn = []
    thisWord = []
    lastSplitPos = 0
    inQuote = False
    for char in string:
        if inQuote:
            if char == '"':
                inQuote = False
            else:
                thisWord.append(char)
        elif char == '"':
            inQuote = True
        elif char == charToSplitOn:
            toReturn.append(''.join(thisWord))
            thisWord = []
        else:
            thisWord.append(char)
    if len(thisWord) > 0:
        toReturn.append(''.join(thisWord))
    print('Parsed arguments:', toReturn)
    return toReturn
