diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -51,6 +51,11 @@ func main() { os.Exit(-1) } + if argv.Regret { + // this will override the manditory Uuid checks + os.Setenv("PROTOBUF_REGRET", "true") + } + pf := new(File) pb.Files = append(pb.Files, pf) pf.Filename = argv.Proto @@ -61,7 +66,7 @@ func main() { // parse sort & marshal options from the .proto file // this goes through the .proto files and looks // for `autogenpb: ` lines - if err := pb.protoParse(pf); err != nil { + if err := pf.protoParse(); err != nil { log.Info("autogenpb parse error:", err) badExit(err) } |
