def parse_options():
    try:
        db_type = sys.argv[1]
    except __HOLE__:
        usage("must specify DB type")

    try:
        orig_branch, orig_version = sys.argv[2].split(':')
    except IndexError:
        usage('original branch and version required (e.g. master:82)')

    try:
        new_branch, new_version = sys.argv[3].split(':')
    except IndexError:
        usage('new branch and version required (e.g. master:82)')

    return db_type, orig_branch, orig_version, new_branch, new_version
dataset/ETHPy150Open openstack/ec2-api/tools/db/schema_diff.py/parse_options