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 ac1ee1a..004ce5a 100644
--- a/main.go
+++ b/main.go
@@ -62,6 +62,11 @@ func main() {
os.Exit(-1)
}
+ if argv.Format {
+ protoReformat(argv.Proto)
+ okExit("")
+ }
+
if argv.Regret {
// this will override the manditory Uuid checks
os.Setenv("PROTOBUF_REGRET", "true")