summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)
}