def parse_args(argv):
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument('-t', '--tests', help='Test names to run.')
    parser.add_argument('-l', '--libraries', help='Library names to test.')
    opts = parser.parse_args()
    if opts.tests:
        opts.tests = opts.tests.split(',')
    if opts.libraries:
        opts.libraries = opts.libraries.split(',')
    return vars(opts)
def parse_args(argv):
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument('-t', '--tests', help='Test names to run.')
    parser.add_argument('-l', '--libraries', help='Library names to test.')
    opts = parser.parse_args()
    if opts.tests:
        opts.tests = opts.tests.split(',')
    if opts.libraries:
        opts.libraries = opts.libraries.split(',')
    return vars(opts)