def getArgs(cls, arg): """turn a comma-separated set of values into opts and values that can be merged with other configuration opts, and return it args: a string possibly containing commas returns: dict of option, value where the options may include: 'host' -- source host(s) 'path' -- path to file or files on source host 'db' -- name of db for source 'user' -- user name for db connection 'password' -- password for db connection or other options particular to a given source """ result = HOptions.getOptions( arg, sorted(cls.options, key=lambda optName: cls.options[optName][0])) for opt in result: result[opt] = cls.parseOptionMultiples(opt, result[opt]) return result