Index: lib/MsgUtils/scripts/GenerateProtobuf.py =================================================================== diff -u -rcfc0df719cb5033078d0cac45ce0f6243810f2e7 -rfa691c15183dfe8596de699ef8c3a7fcdb90edab --- lib/MsgUtils/scripts/GenerateProtobuf.py (.../GenerateProtobuf.py) (revision cfc0df719cb5033078d0cac45ce0f6243810f2e7) +++ lib/MsgUtils/scripts/GenerateProtobuf.py (.../GenerateProtobuf.py) (revision fa691c15183dfe8596de699ef8c3a7fcdb90edab) @@ -8,11 +8,11 @@ def main(): parser = argparse.ArgumentParser( - description='Tool for generating the protobuf input file from the inputted message csv file' + description='Tool for generating the protobuf input file from the inputted message conf file' ) parser.add_argument('--output_dir', help='output directory for the generated Protobuf file', default='.') parser.add_argument('--namespace', help='namespace for protobuf package definition') - parser.add_argument('csv', nargs='+', help='csv input file') + parser.add_argument('conf', nargs='+', help='conf input file') parser.add_argument('protobuf', help='filename of outputted Protobuf file') args = parser.parse_args() @@ -21,8 +21,8 @@ else: msg_protobuf = MsgProtobuf() try: - for csv in args.csv: - msg_protobuf.load(csv) + for conf in args.conf: + msg_protobuf.loadConf(conf) if args.output_dir is not None: os.makedirs(args.output_dir, exist_ok=True) msg_protobuf.write_proto(args.protobuf, args.namespace, args.output_dir)