<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main():
 """Read two files line-by-line and print edit distances between each pair of lines. Will terminate at the end of the shorter of the two files."""


    if len(sys.argv) != 3:
        print('Usage: {} <file1> <file2>'.format(sys.argv[0]))
        exit(-1)
    file1 = sys.argv[1]
    file2 = sys.argv[2]

    with open(file1) as f1, open(file2) as f2:
        for line1, line2 in zip(f1, f2):
            print("Line 1: {}".format(line1.strip()))
            print("Line 2: {}".format(line2.strip()))
            dist, _, _ = edit_distance_backpointer(line1.split(), line2.split())
            print('Distance: {}'.format(dist))
            print('=' * 80)