def main(): parser = argparse.ArgumentParser() parser.add_argument('json') parser.add_argument('--output', required=True) args = parser.parse_args() fidl_obj = fidl.fidl_from_dict(json.load(open(args.json, 'r'))) with open(args.output, 'w') as f: c = Compiler(fidl_obj, f) c.Compile()