summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-27 06:26:01 -0500
committerJeff Carr <[email protected]>2025-03-27 06:26:01 -0500
commit1b7d44ec42bc5be8f07bb67c0fbbddf36f2e3050 (patch)
tree9fc2157180c98e1b1d3493516ec73394343d2fbf /main.go
parentebf856a579281c4aea7630d3cc712adac5bb21d7 (diff)
add an enum for messages
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 004ce5a..e4c510f 100644
--- a/main.go
+++ b/main.go
@@ -86,7 +86,9 @@ func main() {
log.Info("autogenpb parse error:", err)
badExit(err)
}
- protoReformat(argv.Proto)
+ if !argv.NoFormat {
+ protoReformat(argv.Proto)
+ }
if pf.Bases == nil {
badExit(fmt.Errorf("Base was nil. 'message %s {` did not exist", pf.Filebase))