382
382
p = optparse.OptionParser(usage='%prog [options] file_a file_b'
383
383
'\nFiles can be "-" to read from stdin')
384
p.add_option('--cdv', dest='matcher', action='store_const', const='cdv',
384
p.add_option('--patience', dest='matcher', action='store_const', const='patience',
386
386
p.add_option('--difflib', dest='matcher', action='store_const', const='difflib',
391
391
(opts, args) = p.parse_args(args)
392
392
matcher = algorithms[opts.matcher]