summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 75f82ba..381b2fd 100644
--- a/main.go
+++ b/main.go
@@ -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)
}