diff --git a/src/action/generator.go b/src/action/generator.go index b84f7d49..b282c7be 100644 --- a/src/action/generator.go +++ b/src/action/generator.go @@ -23,7 +23,7 @@ func Generate(files []string, fieldsToExportStr, format, table string) (lines [] count := 0 if strings.ToLower(filepath.Ext(files[1])) == "."+constant.FormatProto { //gen from protobuf - buf, pth := gen.GenerateFromProtobuf(files[0]) + buf, pth := gen.GenerateFromProtobuf(files[1]) if vari.Verbose { logUtils.PrintTo(i118Utils.I118Prt.Sprintf("protobuf_path", pth))