2 # -*- Mode: Python; py-indent-offset: 4 -*-
8 parser = optparse.OptionParser(
9 usage="usage: %prog [options] generated-defs old-defs")
10 parser.add_option("-p", "--merge-parameters",
11 help="Merge changes in function/methods parameter lists",
12 action="store_true", dest="parmerge", default=False)
13 (options, args) = parser.parse_args()
16 parser.error("wrong number of arguments")
18 newp = defsparser.DefsParser(args[0])
19 oldp = defsparser.DefsParser(args[1])
24 newp.merge(oldp, options.parmerge)