summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-27 15:03:11 -0500
committerJeff Carr <[email protected]>2025-03-27 15:03:11 -0500
commit4b7f42004512c83869370c20cc22398b1a4a2ab2 (patch)
treed86665981e1e56ae597a4775ef614bbbc5638e59 /main.go
parentbe94cbe32077eeee49969adffc169f879f153ab1 (diff)
a real world example
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index e4c510f..e0702f9 100644
--- a/main.go
+++ b/main.go
@@ -66,6 +66,10 @@ func main() {
protoReformat(argv.Proto)
okExit("")
}
+ if argv.Comments {
+ protoReformatComments(argv.Proto)
+ okExit("")
+ }
if argv.Regret {
// this will override the manditory Uuid checks
@@ -86,6 +90,7 @@ func main() {
log.Info("autogenpb parse error:", err)
badExit(err)
}
+
if !argv.NoFormat {
protoReformat(argv.Proto)
}