48 parser = OptionParser()
49 parser.add_option('--output-directory')
50 parser.add_option('--interfaces-info-file')
51 parser.add_option('--write-file-only-if-changed', type='int', default='1')
52 parser.add_option('--generate-global', type='int')
53
54
55 parser.disable_interspersed_args()
56
57 options, args = parser.parse_args()
58 if options.output_directory is None:
59 parser.error('Must specify output directory using --output-directory.')
60 options.write_file_only_if_changed = bool(
61 options.write_file_only_if_changed)
62 options.generate_global = bool(options.generate_global)
64
65 return options, None
66 idl_filename = os.path.realpath(args[0])
67 return options, idl_filename
68
69