def argListToString(argList):
    """Converts a list of arguments into a single argument string"""

    string = ""
    for arg in argList:
        stringVersion = str(arg)

        # Wrap arguments with spaces in them in "" so they stay together
        if stringVersion.find(' ') >= 0:
            stringVersion = '"' + stringVersion + '" '

        if string == "":
            string = stringVersion
        else:
            string = string + ' ' + stringVersion
        
    return string