def tool_version_compare(version_a, version_b):
    """
    Compare for tool version:
    :param version_a: version to be compared
    :param version_b: version to be compared
    :return  1: version_a is larger than version_b
             0: version_a equals version b
            -1: version-a is smaller than version b
            -2: input parameters include empty value
    """
    if not version_a or not version_b:
        return -2
    version_a_bits = version_a.split(".")
    version_b_bits = version_b.split(".")
    if version_a_bits > version_b_bits:
        return 1
    elif version_a_bits < version_b_bits:
        return -1
    else:
        return 0