summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index ddd39f8..0763542 100644
--- a/main.go
+++ b/main.go
@@ -81,8 +81,12 @@ func main() {
iterAppend(f, sortmap)
iterEnd(f, sortmap)
- // make the foo.marshal.pb.go file
- marshal(sortmap)
+ if argv.NoMarshal {
+ log.Info("not making marshal.pb.go file (--no-marshal == true)")
+ } else {
+ // make the foo.marshal.pb.go file
+ marshal(sortmap)
+ }
}
func headerComment(w io.Writer) {